frint errors
This commit is contained in:
parent
f999aa459f
commit
c208f83820
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue