Skip to content

Commit

Permalink
Fix exception message when response code is 503
Browse files Browse the repository at this point in the history
  • Loading branch information
aymeric-dispa committed Nov 24, 2022
1 parent 0e11809 commit 1ceed43
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/main/java/com/firebolt/jdbc/client/FireboltClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,7 @@ protected void validateResponse(String host, Response response, Boolean isCompre
if (!isCallSuccessful(statusCode)) {
if (statusCode == HTTP_UNAVAILABLE) {
throw new FireboltException(
String.format("Could not query Firebolt at %s. The engine is not running. Status code: %d",
host, HTTP_FORBIDDEN),
statusCode);
String.format("Could not query Firebolt at %s. The engine is not running.", host), statusCode);
}
String errorResponseMessage;
try {
Expand Down

0 comments on commit 1ceed43

Please sign in to comment.