Small fix

This commit is contained in:
Akim Mamedov 2023-11-17 23:47:51 +07:00
parent 56620ab6fa
commit f20f02bf98

View File

@ -88,7 +88,7 @@ function isScalar(
throw new SchemaValidationError(path, schema, "string", arg);
}
} else {
throw new SchemaValidationError(path, schema, "never", arg);
throw new SchemaValidationError(path, schema, schema.name, arg);
}
return arg;