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: [RELEASE] improved InvalidTransition error to include aggregate_id #59

Closed
wants to merge 2 commits into from

Conversation

Michael-M-Judd
Copy link

Why

Right now the failure is a bit hard to debug just from the error because we have to track down how it got there via logs and without the ID its a little hard to track down

What changed

Include the aggregate_id in the message for easy debugging.

@@ -22,6 +22,16 @@
event.class, :count
)
end

it 'raises an event with the correct error message' do
allow(Eventsimple::InvalidTransition).to receive(:new).and_call_original
Copy link
Collaborator

Choose a reason for hiding this comment

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

I don't think we need to stub this

Copy link

github-actions bot commented Jun 1, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

@github-actions github-actions bot added the Stale label Jun 1, 2024
Copy link

github-actions bot commented Jul 1, 2024

This issue has been automatically closed because it has had no activity for over 90 days. Please re-open if you feel this was done in error.

@github-actions github-actions bot closed this Jul 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

2 participants