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

Fix "Error: no error?" message #1889

Merged
merged 3 commits into from
Jan 8, 2025
Merged

Fix "Error: no error?" message #1889

merged 3 commits into from
Jan 8, 2025

Conversation

YaroShkvorets
Copy link
Collaborator

Fixes #1873

Was happening when user pressed ESC key on prompts. This made gluegun enquirer library throw an empty Error that oclif was confused about (hence "no error?" message).

This PR adds a catch where applicable to properly handle that exception.

Copy link
Contributor

🚀 Snapshot Release (alpha)

The latest changes of this PR are available as alpha on npm (based on the declared changesets):

Package Version Info
@graphprotocol/graph-cli 0.93.4-alpha-20241231001521-5349d1f07a9d1cd1fedb70c87ca94e90eeb63174 npm ↗︎ unpkg ↗︎

@YaroShkvorets YaroShkvorets requested a review from 0237h January 6, 2025 14:49
Copy link
Collaborator

@0237h 0237h left a comment

Choose a reason for hiding this comment

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

Nice. That ESC key behavior is annoying from enquirer, reminded me of this discussion where we ran into it. Hopefully this fixes the rest of the issues 🙏

@YaroShkvorets YaroShkvorets merged commit e085e39 into main Jan 8, 2025
9 checks passed
@YaroShkvorets YaroShkvorets deleted the yaro/fix-no-error branch January 8, 2025 00:44
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.

"Error: no error?" message
2 participants