Browse Source
Merge pull request #14392 from vvlladd28/bug/show-error/gateway-timeout
Fix incorrect error height of timeout message
pull/14408/head
Vladyslav Prykhodko
11 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
4 additions and
0 deletions
-
ui-ngx/src/app/core/interceptors/global-http-interceptor.ts
|
|
|
@ -125,6 +125,10 @@ export class GlobalHttpInterceptor implements HttpInterceptor { |
|
|
|
this.showError(req.method + ': ' + req.url + '<br/>' + |
|
|
|
errorResponse.status + ': ' + errorResponse.statusText); |
|
|
|
} |
|
|
|
} else if (errorResponse.status === 504) { |
|
|
|
if (!ignoreErrors) { |
|
|
|
this.showError('Request timeout'); |
|
|
|
} |
|
|
|
} else { |
|
|
|
unhandled = true; |
|
|
|
} |
|
|
|
|