frint errors

This commit is contained in:
Sagi Dayan 2017-10-21 22:00:33 +03:00
parent f999aa459f
commit c208f83820

View file

@ -26,6 +26,7 @@ function storeFile(fileId, callback) {
let storeFileCallback = (err, filePath, chatId, photoId) => { let storeFileCallback = (err, filePath, chatId, photoId) => {
let response; let response;
if (err) { if (err) {
console.error('Failed to save file...[ERROR]\n', err);
response = config.messages.sendieResponse.failedToSaveFile; response = config.messages.sendieResponse.failedToSaveFile;
response = response.replace('{error}', err); response = response.replace('{error}', err);
telegram.sendMessage(chatId, response); telegram.sendMessage(chatId, response);