1
0
mirror of https://codeberg.org/teddit/teddit synced 2024-12-22 16:39:24 +01:00

add catches

This commit is contained in:
teddit 2020-12-05 21:34:08 +01:00
parent a1e53600e6
commit 12a71d3980

View File

@ -8,6 +8,8 @@ module.exports = function(request, fs) {
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 })
}
})
}).catch((err) => {
console.log(`Writing media file to disk failed for unknown reason. Details:`, err)
})
}