snyk 1.1043.0 → 1.1044.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli/784.index.js +2 -2
- package/dist/cli/784.index.js.map +1 -1
- package/dist/cli/917.index.js +7 -6
- package/dist/cli/917.index.js.map +1 -1
- package/dist/cli/index.js +3 -1
- package/dist/cli/index.js.map +1 -1
- package/dist/lib/errors/failed-to-run-test-error.d.ts +2 -1
- package/package.json +1 -1
package/dist/cli/784.index.js
CHANGED
|
@@ -6017,7 +6017,7 @@ async function runTest(projectType, root, options) {
|
|
|
6017
6017
|
}
|
|
6018
6018
|
throw new errors_1.FailedToRunTestError(error.userMessage ||
|
|
6019
6019
|
error.message ||
|
|
6020
|
-
`Failed to test ${projectType} project`, error.code);
|
|
6020
|
+
`Failed to test ${projectType} project`, error.code, error.innerError);
|
|
6021
6021
|
}
|
|
6022
6022
|
finally {
|
|
6023
6023
|
spinner_1.spinner.clear(spinnerLbl)();
|
|
@@ -6116,7 +6116,7 @@ function handleTestHttpErrorResponse(res, body) {
|
|
|
6116
6116
|
case 401:
|
|
6117
6117
|
case 403:
|
|
6118
6118
|
err = errors_1.AuthFailedError(userMessage, statusCode);
|
|
6119
|
-
err.innerError = body.stack;
|
|
6119
|
+
err.innerError = body.stack || body;
|
|
6120
6120
|
break;
|
|
6121
6121
|
case 404:
|
|
6122
6122
|
err = new errors_1.NotFoundError(userMessage);
|