Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(runtime): catch image exceptions and prevent page crash #43

Merged
merged 2 commits into from
Oct 21, 2020

Conversation

farnabaz
Copy link
Member

Doing wrong with nuxt-image should not lead page crash. When the user uses an invalid provider or preset Image module throw an exception, We need to catch these exceptions to prevent page crash.
Instead we can show the exception message inside nuxt-image.

Screen Shot 2020-10-19 at 12 58 57 PM

@farnabaz farnabaz requested a review from pi0 October 19, 2020 10:39
@farnabaz farnabaz merged commit e5190c1 into master Oct 21, 2020
@farnabaz farnabaz deleted the handle-exception branch October 21, 2020 19:19
procrates pushed a commit to procrates/nuxt-image that referenced this pull request Feb 21, 2023
* feat(runtime): catch image exceptions and prevent global crash

* fix: unify error handle
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants