Unverified Commit 0ff70fd5 authored by niketchandivade's avatar niketchandivade Committed by GitHub

fix(examples): correct error message typo (#97223)

## Summary

While reviewing the examples in the Next.js repository for potential
improvements, I noticed a typo in the error message displayed when an
unexpected error occurs.

## Changes

- Corrected `"An unexpected error happened occurred:"` to `"An
unexpected error occurred:"`.

## Testing

No functional changes. This is a text-only fix.
Co-authored-by: 's avatarMarcos Hernanz <96699542+marcoshernanz@users.noreply.github.com>
parent fe87d7ac
...@@ -39,7 +39,7 @@ const Login = () => { ...@@ -39,7 +39,7 @@ const Login = () => {
throw new Error(await res.text()); throw new Error(await res.text());
} }
} catch (error) { } catch (error) {
console.error("An unexpected error happened occurred:", error); console.error("An unexpected error occurred:", error);
setErrorMsg(error.message); setErrorMsg(error.message);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment