Skip to content

Commit

Permalink
fix: error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
Der-Zauberer committed Aug 3, 2023
1 parent accca43 commit 6913346
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/auth-page/auth-page.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export class AuthPageComponent implements OnInit {
error => {
if (error.status === HttpStatusCode.Unauthorized) {
this.errorMessage = 'Benutzername wird bereits verwendet.'
} else if (error.error) {
} else if (rror.error && error.error.status && error.error.title && error.error.detail) {
this.errorMessage = 'Unerwarteter Fehler: ' + error.error.status + ' ' + error.error.title + ' ' + error.error.detail;
} else {
this.errorMessage = 'Unerwarteter Fehler'
Expand Down Expand Up @@ -84,7 +84,7 @@ export class AuthPageComponent implements OnInit {
error => {
if (error.status === HttpStatusCode.BadRequest) {
this.errorMessage = 'Benutzername / Passwort ist falsch.'
} else if (error.error) {
} else if (error.error && error.error.status && error.error.title && error.error.detail) {
this.errorMessage = 'Unerwarteter Fehler: ' + error.error.status + ' ' + error.error.title + ' ' + error.error.detail;
} else {
this.errorMessage = 'Unerwarteter Fehler'
Expand Down

0 comments on commit 6913346

Please sign in to comment.