Skip to content

Commit 96dfcce

Browse files
committed
Rename
1 parent 84bbe87 commit 96dfcce

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

packages/react-valibot/src/validateProps.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,12 @@ export default function validateProps<const TSchema extends BaseSchema<unknown,
6161
try {
6262
return parse(propsSchema, props);
6363
} catch (error) {
64-
const ourError = new Error('botframework-webchat: Validation error while parsing props.');
64+
const validationError = new Error('botframework-webchat: Validation error while parsing props.');
6565

66-
console.error(ourError, error && typeof error === 'object' && 'issues' in error && error.issues);
66+
console.error(validationError, error && typeof error === 'object' && 'issues' in error && error.issues);
6767

68-
ourError.cause = error;
68+
validationError.cause = error;
6969

70-
throw ourError;
70+
throw validationError;
7171
}
7272
}

0 commit comments

Comments
 (0)