mirror of
https://codeberg.org/teddit/teddit
synced 2024-12-23 00:49:03 +01:00
add catches
This commit is contained in:
parent
a1e53600e6
commit
12a71d3980
@ -8,6 +8,8 @@ module.exports = function(request, fs) {
|
|||||||
resolve({ success: false, data: null })
|
resolve({ success: false, data: null })
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
}).catch((err) => {
|
||||||
|
console.log(`Downloading media file failed for unknown reason. Details:`, err)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -20,6 +22,8 @@ module.exports = function(request, fs) {
|
|||||||
resolve({ success: false })
|
resolve({ success: false })
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
}).catch((err) => {
|
||||||
|
console.log(`Writing media file to disk failed for unknown reason. Details:`, err)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user