File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
orchestration/src/main/java/com/sap/ai/sdk/orchestration Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -38,8 +38,8 @@ class Synchronous implements OrchestrationError {
3838 @ Nonnull
3939 public String getMessage () {
4040 final Error e = errorResponse .getError ();
41- final Integer code = e .getCode ();
42- return code == 500 ? "%s located in %s" .formatted (code , e .getLocation ()) : e . getMessage () ;
41+ final String message = e .getMessage ();
42+ return e . getCode () == 500 ? "%s located in %s" .formatted (message , e .getLocation ()) : message ;
4343 }
4444 }
4545
@@ -61,8 +61,8 @@ class Streaming implements OrchestrationError {
6161 @ Nonnull
6262 public String getMessage () {
6363 final ErrorStreaming e = errorResponse .getError ();
64- final Integer code = e .getCode ();
65- return code == 500 ? "%s located in %s" .formatted (code , e .getLocation ()) : e . getMessage () ;
64+ final String message = e .getMessage ();
65+ return e . getCode () == 500 ? "%s located in %s" .formatted (message , e .getLocation ()) : message ;
6666 }
6767 }
6868}
You can’t perform that action at this time.
0 commit comments