Skip to content

Watcher: Error catching fixed #1573

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

Merged
merged 3 commits into from
Feb 21, 2022
Merged

Watcher: Error catching fixed #1573

merged 3 commits into from
Feb 21, 2022

Conversation

m0shiurX
Copy link
Contributor

Description of Problem

There was a typo/mistake in the example try-catch block.

 try {
        .....
    } catch (e) {
      answer.value = 'Error! Could not reach the API. ' + error
    }

Proposed Solution

It should either be error in the catch clause or e in the statement.

 try {
        .....
    } catch (error) {
      answer.value = 'Error! Could not reach the API. ' + error
    }

There was a typo/mistake in the example try-catch block. It should either be `error` in the catch clause or `e` in the statement.
```
 try {
        .....
    } catch (error) {
      answer.value = 'Error! Could not reach the API. ' + error
    }
```
@netlify
Copy link

netlify bot commented Feb 21, 2022

✔️ Deploy Preview for vuejs ready!

🔨 Explore the source changes: 37ec79a

🔍 Inspect the deploy log: https://app.netlify.com/sites/vuejs/deploys/6213be79fdb3a300071ab794

😎 Browse the preview: https://deploy-preview-1573--vuejs.netlify.app

The playground links are updated to match the code changes.
Copy link
Contributor

@skirtles-code skirtles-code left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix!

There seems to be a problem with the first Playground. The URL has changed to https://yesno.wtf/apdi, with a letter d that shouldn't be there. I assume that's leftover from testing the error handling.

If you could fix that URL I think we can get this merged. Thanks.

@m0shiurX
Copy link
Contributor Author

@skirtles-code Thanks for pointing it out, I have fixed the URL.

@skirtles-code skirtles-code merged commit 9e536f2 into vuejs:main Feb 21, 2022
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