Skip to content

Commit

Permalink
404 is an expected response, should only error log if the response is…
Browse files Browse the repository at this point in the history
… not 404
  • Loading branch information
ChristofferKarlsson committed Nov 22, 2024
1 parent 5444b5a commit c83e7d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/_common/actions/userActions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export async function getUser() {
}

if (!res.ok) {
if (res.status === 404) {
if (res.status !== 404) {
logger.error(`GET user from aduser failed. ${res.status} ${res.statusText}`);
}

Expand Down

0 comments on commit c83e7d1

Please sign in to comment.