feat: Show error properly to the user on yt command
This commit is contained in:
parent
86e6664795
commit
7c8dba27f9
3 changed files with 4 additions and 2 deletions
|
@ -139,7 +139,7 @@ module.exports = (bot) => {
|
|||
|
||||
fs.unlinkSync(mp4File);
|
||||
} catch (error) {
|
||||
await ctx.reply(`\`${error.message}\``, {
|
||||
await ctx.reply(Strings.error, {
|
||||
parse_mode: 'Markdown',
|
||||
reply_to_message_id: ctx.message.message_id,
|
||||
});
|
||||
|
@ -165,7 +165,7 @@ module.exports = (bot) => {
|
|||
}
|
||||
} catch (error) {
|
||||
console.error(error);
|
||||
await ctx.reply(`\`${error.message}\``, {
|
||||
await ctx.reply(Strings.error, {
|
||||
parse_mode: 'Markdown',
|
||||
reply_to_message_id: ctx.message.message_id,
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue