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

Try catch in post-install script #374

Merged
merged 3 commits into from
Oct 16, 2023
Merged

Try catch in post-install script #374

merged 3 commits into from
Oct 16, 2023

Conversation

logason
Copy link
Member

@logason logason commented Oct 12, 2023


@logason logason requested review from a team and hugihlynsson and removed request for a team October 12, 2023 23:44
@logason logason requested a review from bjornj12 October 13, 2023 12:30
}
});
try {
Avo.cliInstalled({
Copy link
Contributor

Choose a reason for hiding this comment

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

I was a bit surprised at first that this doesn't have an await but then I guess we're already .catch-ing that promise. I guess we're try-catching issues that happen before the called function manages to return the Promise?

Copy link
Member Author

Choose a reason for hiding this comment

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

Probably yes, at least something is causing it to fail for people 🤔

@logason logason merged commit 30b26b5 into main Oct 16, 2023
4 checks passed
@logason logason deleted the try-catch-post-install branch October 16, 2023 13:29
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