qase-javascript-commons 2.2.12 → 2.2.13
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/changelog.md
CHANGED
|
@@ -642,6 +642,10 @@ class TestOpsReporter extends abstract_reporter_1.AbstractReporter {
|
|
|
642
642
|
if (error.response?.status === 404) {
|
|
643
643
|
return new qase_error_1.QaseError(message + ': Not found.');
|
|
644
644
|
}
|
|
645
|
+
if (error.response?.status === 403) {
|
|
646
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access,@typescript-eslint/restrict-template-expressions
|
|
647
|
+
return new qase_error_1.QaseError(`${message}: ${error.response?.data?.errorMessage}`);
|
|
648
|
+
}
|
|
645
649
|
if (error.response?.status === 400 || error.response?.status === 422) {
|
|
646
650
|
return new qase_error_1.QaseError(message + ': Bad request. Body: \n ' + JSON.stringify(model));
|
|
647
651
|
}
|