Skip to content

Commit

Permalink
add default message for empty exception
Browse files Browse the repository at this point in the history
  • Loading branch information
hgryoo committed Jan 3, 2025
1 parent d5410e2 commit e75ae8b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ public void run() {
if (throwable instanceof SQLException) {
String msg = throwable.getMessage();
if (msg == null) {
msg = "";
msg = "Unexpected sql error";
}
sendError(msg);
} else if (throwable instanceof PlcsqlRuntimeError) {
Expand All @@ -249,7 +249,7 @@ public void run() {
} else {
String msg = throwable.getMessage();
if (msg == null) {
msg = "";
msg = "Unexpected internal error";
}
sendError(msg);
}
Expand Down

0 comments on commit e75ae8b

Please sign in to comment.