@trudb/tru-common-lib 0.2.17 → 0.2.18
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.
|
@@ -9885,7 +9885,7 @@ class TruServerError {
|
|
|
9885
9885
|
if (parsedError.ExceptionType && parsedError.ExceptionType === 'tru-db-custom-exception') {
|
|
9886
9886
|
parsedError = JSON.parse(parsedError.Message);
|
|
9887
9887
|
this.id = parsedError.$id;
|
|
9888
|
-
this.type =
|
|
9888
|
+
this.type = 'tru-db-custom-exception';
|
|
9889
9889
|
this.code = parsedError.Code;
|
|
9890
9890
|
this.title = parsedError.data.exceptionObj.title;
|
|
9891
9891
|
this.message = parsedError.message;
|
|
@@ -10013,7 +10013,7 @@ class TruErrorInterceptor {
|
|
|
10013
10013
|
}
|
|
10014
10014
|
intercept(request, next) {
|
|
10015
10015
|
return next.handle(request).pipe(catchError((error) => {
|
|
10016
|
-
if (error.status !== 401 &&
|
|
10016
|
+
if (error.status !== 401 && !(error.error instanceof Blob))
|
|
10017
10017
|
this.errorManager.handleError(error);
|
|
10018
10018
|
return next.handle(request);
|
|
10019
10019
|
}));
|