1
0
mirror of https://github.com/google/nomulus synced 2026-01-03 11:45:39 +00:00

Allow console access for FTE globar role (#2419)

This commit is contained in:
Pavlo Tkach
2024-05-01 12:19:29 -04:00
committed by GitHub
parent e791608098
commit 570618705e
19 changed files with 294 additions and 290 deletions

View File

@@ -36,6 +36,7 @@ yarn-error.log
/libpeerconnection.log
testem.log
/typings
.nx/
# System files
.DS_Store

View File

@@ -33,6 +33,11 @@ export class BackendService {
error: HttpErrorResponse,
mockData?: Type
): Observable<Type> {
// This is a temporary redirect to the old console untill the new console
// is fully released and enabled
if (error.url && window.location.href.indexOf(error.url) < 0) {
window.location.href = error.url;
}
if (error.error instanceof Error) {
// A client-side or network error occurred. Handle it accordingly.
console.error('An error occurred:', error.error.message);