Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
fix(error): display 500 server error when the api is not healthy (DEV…
…-475) (#673) * chore(config): useful developer release name * style(dialog): no border or transition in full-size * style(dialog): no border or transition in full-size * fix(login): not sure if this is helpful to avoid errors in rollbar * chore(error): improve error handler * refactor: clean up code and imports * chore(header): get api health status more often * refactor: change comment * test(error): fix failing test * refactor(error): clean up code * test(error): test error handler * chore(deps): bump js-lib to latest * refactor(deps): get correct js-lib version * test(error): exclude one test * test(error): bring back the test
- Loading branch information
1 parent
fde5d99
commit b374a3b
Showing
17 changed files
with
308 additions
and
39 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,27 @@ | ||
<div class="error-page"> | ||
|
||
<!-- error 403: forbidden --> | ||
<div class="container"> | ||
<div class="container" *ngIf="!refresh; else isLoading"> | ||
<div class="image"> | ||
<img class="error-image" [src]="'/assets/images/' + errorMessage?.image" /> | ||
</div> | ||
<div class="text error-message"> | ||
<h2 class="mat-title">ERROR {{status}}</h2> | ||
<h1 class="mat-headline">{{errorMessage?.message}}</h1> | ||
<p [innerHTML]="errorMessage.description"></p> | ||
<p *ngIf="comment"><strong>API response:</strong><br>→ {{comment}}</p> | ||
<div [ngSwitch]="errorMessage?.action" class="action"> | ||
<button *ngSwitchCase="'goback'" mat-button routerLink="/"> | ||
<mat-icon>keyboard_backspace</mat-icon> Please go back to the start page. | ||
</button> | ||
<p *ngSwitchCase="'reload'"> | ||
Please come back in a few minutes and try to <a (click)="reload()">reload the page</a> | ||
Please come back in a few minutes and try to <a (click)="reload()">reload the page</a>. | ||
</p> | ||
</div> | ||
|
||
</div> | ||
</div> | ||
<ng-template #isLoading> | ||
<app-progress-indicator></app-progress-indicator> | ||
</ng-template> | ||
|
||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.