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:
parent
0e58301dc8
commit
b490302cd4
1 changed files with 1 additions and 1 deletions
|
@ -112,7 +112,7 @@ export function makeIoTsConfigParser<Schema extends t.Type<any>>(schema: Schema)
|
||||||
return (input: unknown) => {
|
return (input: unknown) => {
|
||||||
const error = validate(schema, input);
|
const error = validate(schema, input);
|
||||||
if (error) {
|
if (error) {
|
||||||
throw error;
|
throw strictValidationErrorToConfigValidationError(error);
|
||||||
}
|
}
|
||||||
return input as t.TypeOf<Schema>;
|
return input as t.TypeOf<Schema>;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue