-
-
Notifications
You must be signed in to change notification settings - Fork 724
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
GH-1616: Better error message for interdependent tasks #3142
GH-1616: Better error message for interdependent tasks #3142
Conversation
norpache
commented
Feb 15, 2021
•
edited
Loading
edited
- Error message was changed. But it feels kind of awkward since we seams to be in "low level" graph code but we want a user friendly "high" level message.
- Fixes Error message on circular references leads to poor developer experience #1616
- Added information was put on another line to maintain backwards compatibility with old message.
The case where a task depends on itself could probably also use a better message (Error "Reflexive edges in graph are not allowed."). Let me know if you want it changed in another PR. |
@norpache Thanks for the PR! I think you're spot on in the sense that we're trying to get a user-friendly message from a low-level API. Perhaps the way to go about this, would be to throw custom graph exceptions as needed (e.g. @cake-build/cake-team What do you think? |
c599114
to
48ab263
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
And corresponding tests
48ab263
to
291ddc2
Compare