@n-isi-platform/design-system 1.0.46 → 1.0.47
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.
|
@@ -862,7 +862,10 @@ class ErrorInterceptor {
|
|
|
862
862
|
console.error('Invalid session detected. Please log in again.');
|
|
863
863
|
}
|
|
864
864
|
else if (err.status === 403) {
|
|
865
|
-
this.
|
|
865
|
+
this.sharedMessageService.errorMessage(this.translateService?.instant('errors.unauthorizedRole'));
|
|
866
|
+
}
|
|
867
|
+
else if (err.status === 404) {
|
|
868
|
+
this.router.navigate(['/not-found']);
|
|
866
869
|
}
|
|
867
870
|
else {
|
|
868
871
|
// Seznam end-pointov pri katerih se error ne prikaže.
|