Skip to content

Commit e57ddca

Browse files
authored
Replace non existing error instance. (#4649)
1 parent daae643 commit e57ddca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/zod/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ When validation fails, the `.parse()` method will throw a `ZodError` instance wi
138138
try {
139139
Player.parse({ username: 42, xp: "100" });
140140
} catch (err) {
141-
if (error instanceof z.ZodError) {
141+
if (err instanceof z.ZodError) {
142142
err.issues;
143143
/* [
144144
{

0 commit comments

Comments
 (0)