Skip to content

Commit

Permalink
use localized error message
Browse files Browse the repository at this point in the history
  • Loading branch information
saschaszott authored Jan 10, 2024
1 parent 610062b commit 92a74ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/core/auth/auth.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ export class AuthService {
if (hasValue(rd.payload) && rd.payload.authenticated) {
return rd.payload;
} else {
throw (new Error('Invalid email or password'));
throw (new Error('auth.errors.invalid-user'));

Check warning on line 122 in src/app/core/auth/auth.service.ts

View check run for this annotation

Codecov / codecov/patch

src/app/core/auth/auth.service.ts#L122

Added line #L122 was not covered by tests
}
}));

Expand Down

0 comments on commit 92a74ce

Please sign in to comment.