Skip to content

Commit 10b99ce

Browse files
committed
fix: add missing error logger to buildFormState error catch
1 parent 1140426 commit 10b99ce

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/next/src/routes/rest/buildFormState.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,8 @@ export const buildFormState = async ({ req }: { req: PayloadRequestWithData }) =
227227
status: httpStatus.OK,
228228
})
229229
} catch (err) {
230+
req.payload.logger.error({ err, msg: `There was an error building form state` })
231+
230232
return routeError({
231233
config: req.payload.config,
232234
err,

0 commit comments

Comments
 (0)