3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-03-15 05:41:51 +00:00

fix: config validation error formatting

This commit is contained in:
Dragory 2023-04-01 23:13:19 +03:00
parent 0e58301dc8
commit b490302cd4
No known key found for this signature in database
GPG key ID: 5F387BA66DF8AAC1

View file

@ -112,7 +112,7 @@ export function makeIoTsConfigParser<Schema extends t.Type<any>>(schema: Schema)
return (input: unknown) => {
const error = validate(schema, input);
if (error) {
throw error;
throw strictValidationErrorToConfigValidationError(error);
}
return input as t.TypeOf<Schema>;
};