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

feat(): Improve query bus to throw error with query name #1743

Merged
merged 3 commits into from
Oct 29, 2024

Conversation

HerrSpeck
Copy link
Contributor

I tried to stick to the changes made in the PR for the Command Handler Exceptions (#1492) .

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Other... Please describe:

What is the current behavior?

Issue Number: #1491

The Query Handler exceptions have the same problem as the Command Handler exceptions.

What is the new behavior?

Errors are thrown with the name of the query and not it's uuid.

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

@micalevisk
Copy link
Member

image

@HerrSpeck
Copy link
Contributor Author

HerrSpeck commented Aug 8, 2024

@micalevisk I fixed the typing :) I think this should work as intended, is there an easy way to test this? Could probably use my fork in a project to verify that the correct name is returned now I guess?

@kamilmysliwiec kamilmysliwiec merged commit 0099dd1 into nestjs:master Oct 29, 2024
1 check passed
@kamilmysliwiec
Copy link
Member

lgtm

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.

3 participants