We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
ZodError
cause
PARSE_PATH_PARAMS
1 parent b32acda commit f204cecCopy full SHA for f204cec
src/core/path-params.ts
@@ -11,6 +11,6 @@ export default function parsePathParams<I, O>(source?: I, schema?: ZodType<O, Zo
11
// eslint-disable-next-line no-console
12
console.log((error as ZodError).issues);
13
}
14
- throw new Error("PARSE_PATH_PARAMS");
+ throw new Error("PARSE_PATH_PARAMS", { cause: (error as ZodError).issues });
15
16
0 commit comments