Changed error handling on crew.js
This commit is contained in:
parent
a36e1825b9
commit
0af901a258
3 changed files with 4 additions and 4 deletions
|
@ -159,12 +159,12 @@ module.exports = (bot) => {
|
|||
caption: botFile
|
||||
});
|
||||
} catch (error) {
|
||||
ctx.reply(Strings.fileError.replace('{error}', error.message), {
|
||||
ctx.reply(Strings.varErr.replace('{error}', error.message), {
|
||||
parse_mode: 'Markdown',
|
||||
reply_to_message_id: ctx.message.message_id
|
||||
});
|
||||
}
|
||||
}, '', Strings.fileError);
|
||||
}, '', Strings.varErr);
|
||||
});
|
||||
|
||||
bot.command('run', spamwatchMiddleware, async (ctx) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue