Skip to content

Commit ed1a3ef

Browse files
author
SAY-5
committed
fix(component/ErrorBox): correct 'occured' -> 'occurred' fallback message
The fallback Error rectifier in packages/component/src/ErrorBox.tsx constructed new Error('Unknown error occured') when the source error was a non-Error value. The message ends up rendered to end users in the WebChat error box. String-literal-only change.
1 parent 482cb4c commit ed1a3ef

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/component/src/ErrorBox.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ function ErrorBox(props: ErrorBoxProps) {
4242
if (error instanceof Error) {
4343
rectifiedError = error;
4444
} else {
45-
rectifiedError = new Error('Unknown error occured');
45+
rectifiedError = new Error('Unknown error occurred');
4646
rectifiedError.cause = error;
4747
}
4848

0 commit comments

Comments
 (0)