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

bugfix: Show error properly if lenses cannot be run #1449

Merged
merged 1 commit into from
Jan 10, 2024

Conversation

tgodzik
Copy link
Contributor

@tgodzik tgodzik commented Jan 4, 2024

No description provided.

Comment on lines 598 to 599
(reason: Error) => {
window.showErrorMessage(reason.message);
Copy link
Member

Choose a reason for hiding this comment

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

did you check that typeof reason in runtime is Error? Where does it come from?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That's what I was getting in runtime, should I do a check to make sure it's an Error?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I added a check just in case.

@tgodzik tgodzik merged commit cee20ea into scalameta:main Jan 10, 2024
10 checks passed
@tgodzik tgodzik deleted the show-error-on-lenses branch January 10, 2024 10:17
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