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: remove obsolete try...catch #176

Merged
merged 1 commit into from
Jul 5, 2024

Conversation

tsauerwein
Copy link
Contributor

Description

Issue asyncapi/cli#1475 gives an example where an invalid external reference is ignored, and all other documents are skipped. Instead of silently failing, this PR proposes to let the error propagate.

Related issue(s)
Fixes asyncapi/cli#1475

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Welcome to AsyncAPI. Thanks a lot for creating your first pull request. Please check out our contributors guide useful for opening a pull request.
Keep in mind there are also other channels you can use to interact with AsyncAPI community. For more details check out this issue.

@tsauerwein tsauerwein changed the title Do not ignore errors fix: Do not ignore errors Jun 27, 2024
@tsauerwein tsauerwein changed the title fix: Do not ignore errors fix: do not ignore errors Jun 27, 2024
@aeworxet
Copy link
Collaborator

aeworxet commented Jul 1, 2024

I do not normally do try...catches only for the sake of error-swallowing, so I surely did it for some reason, but I honestly do not remember for what exactly.

Either that use case has already been taken care of, or I will see the same edge case and process it in another way.

@Souvikns, this PR looks good to me, but can you please do this simple review only so I'm not reviewing my own code?
Also, should the title be fix: remove obsolete try...catch ?

@aeworxet aeworxet changed the title fix: do not ignore errors fix: remove obsolete try...catch Jul 5, 2024
@aeworxet
Copy link
Collaborator

aeworxet commented Jul 5, 2024

/rtm

@asyncapi-bot asyncapi-bot merged commit 1b6bf5d into asyncapi:master Jul 5, 2024
12 checks passed
@asyncapi-bot
Copy link
Contributor

🎉 This PR is included in version 0.5.6 🎉

The release is available on:

Your semantic-release bot 📦🚀

@tsauerwein tsauerwein deleted the fail-on-error branch July 8, 2024 05:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] asyncapi bundle does not report error if external reference cannot be resolved
4 participants