We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f4d3670 commit 3d410dcCopy full SHA for 3d410dc
lib/responder.js
@@ -1039,6 +1039,9 @@ function isResponseStatusOkay(response) {
1039
((typeof contentType === 'string' || contentType instanceof String) &&
1040
/^application\/([^+]+\+)?json(\s*;.*)?$/.test(contentType)) ?
1041
mlutil.parseJSON(bodyMsg) : bodyMsg;
1042
+
1043
+ // Enhance error message with response body details for better debugging
1044
+ clientError.message = clientError.message + ' - Server response: ' + bodyMsg;
1045
}
1046
operation.errorListener(clientError);
1047
}));
0 commit comments