Skip to content

Commit

Permalink
Updated error message
Browse files Browse the repository at this point in the history
  • Loading branch information
kaspian-xz committed May 3, 2023
1 parent 7b345f6 commit 90894c5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 90894c5

Please sign in to comment.