-
Notifications
You must be signed in to change notification settings - Fork 70
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
Ability to GooseTaskError::Custom{ msg ? } #250
Comments
That's an interesting idea. PR's welcome! You should be able to implement this with a PR that changes only |
How/where would you consume these errors? While it's easy enough to add a custom error type, I'm not sure where you'd receive and handle it? Currently Transaction functions are invoked here: We could improve that logic to bubble up the error to the parent function, which would be here: But at that point we can't bubble it up any further. So, @jrouaix, @dpc what would your goal/use-case be? The current design would recommend you use set_failure() as that would get all information into the debug log. |
My goal would be for goose to bubble these errors all the way to the report (aggregate) and tell me that N transactions failed on valuation errors. |
Hello,
I'm trying to implement a full story scenario in a goose task.
Not sure it's the way to do that, but it allows me to reuse generated data from the server or fake data from Faker;
I'd like to ensure the responses are correct, and fail in a nice way (no panic) when it does.
Right now, i'm using
assert!
macros but i'd like to do better and use the goose machinery instead.Could we imagine having a
GooseTaskResult::Custom()
?The text was updated successfully, but these errors were encountered: