We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 75951b8 commit e0488a1Copy full SHA for e0488a1
src/index.ts
@@ -77,7 +77,9 @@ export function defineQuery(
77
}
78
const desc = schemaDef[key];
79
if (!desc.validate(value)) {
80
- throw new Error(`Schema validation failed for '${key}'`);
+ throw new Error(
81
+ `Schema validation failed for '${key}': received ${typeof value} (${JSON.stringify(value)})`,
82
+ );
83
84
values[key] = escapeValue(value);
85
} else {
0 commit comments