We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 26ec73f commit bef34e9Copy full SHA for bef34e9
1 file changed
src/main/java/dev/openfga/sdk/errors/FgaError.java
@@ -145,8 +145,8 @@ public static Optional<FgaError> getError(
145
error.setApiErrorCode(resp.getCode());
146
error.setApiErrorMessage(resp.getMessage());
147
} catch (JsonProcessingException e) {
148
- // Fall back, do nothing - log the exception for debugging
149
- System.err.println("Failed to parse API error response JSON: " + e.getMessage());
+ // Fall back to using raw response body as error message if parsing fails
+ error.setApiErrorMessage(body);
150
}
151
152
0 commit comments