From 90894c5fb0e4307b069a88f7e26671c826e36bc1 Mon Sep 17 00:00:00 2001 From: Alex Bevziuk Date: Wed, 3 May 2023 08:56:31 +0300 Subject: [PATCH] Updated error message --- .../kaspian/kevin/discord/handler/MentionRequestHandler.java | 2 +- .../kaspian/kevin/discord/handler/PrivateMessageHandler.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/info/kaspian/kevin/discord/handler/MentionRequestHandler.java b/src/main/java/info/kaspian/kevin/discord/handler/MentionRequestHandler.java index db96536..494fe2c 100644 --- a/src/main/java/info/kaspian/kevin/discord/handler/MentionRequestHandler.java +++ b/src/main/java/info/kaspian/kevin/discord/handler/MentionRequestHandler.java @@ -54,7 +54,7 @@ public void onNext(String s) { @Override public void onError(Throwable throwable) { LOG.error("Error while reading message", throwable); - message.reply("Sorry, problem happened :( - {" + throwable.getMessage() + "}").queue(); + message.reply("Sorry, problem happened :(\n ```" + throwable.getMessage() + "```").queue(); } @Override diff --git a/src/main/java/info/kaspian/kevin/discord/handler/PrivateMessageHandler.java b/src/main/java/info/kaspian/kevin/discord/handler/PrivateMessageHandler.java index d26998d..7e80821 100644 --- a/src/main/java/info/kaspian/kevin/discord/handler/PrivateMessageHandler.java +++ b/src/main/java/info/kaspian/kevin/discord/handler/PrivateMessageHandler.java @@ -67,7 +67,7 @@ public void onNext(String s) { @Override public void onError(Throwable throwable) { LOG.error("Error while reading message", throwable); - channel.sendMessage("Sorry, problem happened :( - {" + throwable.getMessage() + "}").queue(); + channel.sendMessage("Sorry, problem happened :(\n ```" + throwable.getMessage() + "```").queue(); } @Override