Skip to content

Commit ed1510b

Browse files
committed
MLE-24685 Debugging tests
Removing nodejs-optic-from-views because when I do that locally, I don't get the 500 errors on v1/rows.
1 parent 0c36e94 commit ed1510b

File tree

4 files changed

+7
-1180
lines changed

4 files changed

+7
-1180
lines changed

CONTRIBUTING.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,6 @@ contained in either the "it" function or the "describe" function, respectively.
5353
or
5454

5555
mocha test-basic -timeout 0 -g 'test bindParam with qualifier'
56+
57+
There are also tests in the `test-complete` folder. The setup for these is more complicated and can
58+
be found in the `Jenkinsfile` file in this repository in the `runE2ETests` function.

lib/responder.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1039,6 +1039,9 @@ function isResponseStatusOkay(response) {
10391039
((typeof contentType === 'string' || contentType instanceof String) &&
10401040
/^application\/([^+]+\+)?json(\s*;.*)?$/.test(contentType)) ?
10411041
mlutil.parseJSON(bodyMsg) : bodyMsg;
1042+
1043+
// Enhance error message with response body details for better debugging
1044+
clientError.message = clientError.message + ' - Server response: ' + bodyMsg;
10421045
}
10431046
operation.errorListener(clientError);
10441047
}));

0 commit comments

Comments
 (0)