Skip to content

Commit

Permalink
Pipe falsy responses to stderr
Browse files Browse the repository at this point in the history
  • Loading branch information
nas-tabchiche committed Sep 4, 2024
1 parent 78edb74 commit 800976a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/routes/(authentication)/login/+page.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export const actions: Actions = {

if (!res.ok) {
const response = await res.json();
console.log(response.non_field_errors);
console.error(response);
if (response.non_field_errors) {
setError(form, 'non_field_errors', response.non_field_errors);
}
Expand Down

0 comments on commit 800976a

Please sign in to comment.