Skip to content

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.

@github-actions
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

3 participants