Skip to content

Commit

Permalink
feat: console warn if error
Browse files Browse the repository at this point in the history
  • Loading branch information
dararod committed Feb 20, 2024
1 parent d7a83a7 commit 1446c24
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 0 deletions.
Binary file modified bun.lockb
Binary file not shown.
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -520,6 +520,7 @@ export const newForm: NewFormFn = <T extends object>(
abortEarly: false,
});
} catch (error) {
console.warn(error);
if (error?.inner) {
const validationErrors = error.inner.reduce(
(acc: FormErrors<T>, { message, path }) => {
Expand Down

0 comments on commit 1446c24

Please sign in to comment.