Skip to content

Commit 0070fc9

Browse files
committed
🦺 add validation errors to logger
1 parent 2a0b33e commit 0070fc9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/util/validate.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,13 @@ export function validate(
1414
schemaKeyRef,
1515
data,
1616
);
17+
1718
if (!valid) {
1819
errorLogger(
1920
'validate',
20-
`${schemaKeyRef.type}: validation failed`,
21+
`${schemaKeyRef.type.toLowerCase()}-validation failed: ${ajv.errorsText()}`,
2122
config.apiKey,
22-
ajv.errorsText(),
23+
ajv.errors,
2324
);
2425
return false;
2526
}

0 commit comments

Comments
 (0)