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
parent
commit
9c77586a4f
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 4
      ui-ngx/src/app/core/interceptors/global-http-interceptor.ts

4
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;
}

Loading…
Cancel
Save