mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-03-14 21:31:50 +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) => {
|
||||
const error = validate(schema, input);
|
||||
if (error) {
|
||||
throw error;
|
||||
throw strictValidationErrorToConfigValidationError(error);
|
||||
}
|
||||
return input as t.TypeOf<Schema>;
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue