mirror of
https://codeberg.org/tacerus/teddit.git
synced 2024-11-22 23:09:28 +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 })
|
||||
}
|
||||
})
|
||||
}).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)
|
||||
})
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user