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:
1
console-webapp/.gitignore
vendored
1
console-webapp/.gitignore
vendored
@@ -36,6 +36,7 @@ yarn-error.log
|
||||
/libpeerconnection.log
|
||||
testem.log
|
||||
/typings
|
||||
.nx/
|
||||
|
||||
# System files
|
||||
.DS_Store
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user