Skip to content

Commit

Permalink
Fix type error
Browse files Browse the repository at this point in the history
  • Loading branch information
SpacialCircumstances committed Nov 20, 2024
1 parent 6ed76b8 commit 230a45a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/api/validate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ export const object = <T>(objValidator: ObjectValidator<T>): Validator<T> => {
try {
const validator: Validator<any> = objValidator[key];
n[key] = validator(v[key]);
} catch (e: ValidationError) {
} catch (e) {
throw new ValidationError(`Error in field ${key}: ${e.message}`);
}
}
Expand Down

0 comments on commit 230a45a

Please sign in to comment.