fix: improve error handling
- Do not throw in onError callback for server client. This lets the originating error bubble to Next.js. - Do not log errors inside the service token procedure, server client onError callback will log all procedure errors. - Log errors for fetching service token failure.
This commit is contained in:
committed by
Pontus Dreij
parent
f63cecc488
commit
194ca601b5
@@ -50,8 +50,6 @@ export function serverClient() {
|
||||
redirect(redirectUrl)
|
||||
}
|
||||
}
|
||||
|
||||
throw internalServerError()
|
||||
},
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user