Skip to content

Commit

Permalink
Refactor exception message
Browse files Browse the repository at this point in the history
  • Loading branch information
CharlesDuboisSAP committed Sep 3, 2024
1 parent 3446bf0 commit 45a20c6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,6 @@ static void parseErrorAndThrow(
throw baseException;
}
throw new OpenAiClientException(
baseException.getMessage() + " and error message: '%s'".formatted(error.getMessage()));
"%s and error message: '%s'".formatted(baseException.getMessage(), error.getMessage()));
}
}

0 comments on commit 45a20c6

Please sign in to comment.