Skip to content

Commit 7721a04

Browse files
committed
changed error message
Signed-off-by: Antonio Mendoza Pérez <antmendoza@gmail.com>
1 parent ca76b71 commit 7721a04

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/lib/utils.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export const validate = (typeName: string, data: any): boolean => {
2626
const validateFn: ValidateFunction | undefined = validators.get(typeName);
2727

2828
if (!validateFn) {
29-
throw Error(`Validate function not defined for type [${typeName}]`);
29+
throw Error(`Validate function not defined for type '${typeName}'`);
3030
}
3131

3232
if (!validateFn(data)) {

0 commit comments

Comments
 (0)