Skip to content

Commit

Permalink
Show SQL parser error
Browse files Browse the repository at this point in the history
  • Loading branch information
ronnygunawan committed Feb 17, 2024
1 parent c2bc6e0 commit 19405e7
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,14 @@ await _commandQueue.DispatchAsync(
);
return;
}
} catch (ParserException exc) {
await _telegramBotClient.SendTextMessageAsync(
chatId: update.Message.Chat.Id,
text: $"<code>{exc.Message}</code>",
parseMode: ParseMode.Html,
replyToMessageId: update.Message.MessageId,
cancellationToken: cancellationToken
);
} catch {
// Suppress
}
Expand Down

0 comments on commit 19405e7

Please sign in to comment.