-
-
Notifications
You must be signed in to change notification settings - Fork 736
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
Add overload to WithCriteria which prints a message #1594
Comments
this would be really useful, the current stack trace tells you nothing about why it aborted |
Excellent idea! |
Yeah. I end up doing validation in the task because I can't print a custom message. I would rather use WithCriteria |
* Releates to cake-build#2008, cake-build#1594 and cake-build#1772 * Changes Setup from ICakeContext to ISetupContext * Adds target/initating task as TargetTask on ISetupContext * Adds typed context WithCriteria CakeTaskBuilder extension methods * Adds integration tests for ISetupContext/TData Setup and typed WithCriteria
* Relates to cake-build#2008, cake-build#1594 and cake-build#1772 * Changes Setup from ICakeContext to ISetupContext * Adds target/initating task as TargetTask on ISetupContext * Adds typed context WithCriteria CakeTaskBuilder extension methods * Adds integration tests for ISetupContext/TData Setup and typed WithCriteria
I'm seeing this was included with v0.28, but I'm using v0.30 on Windows and it's not showing the custom messages... Is there some sort of configuration I need to turn on? |
@gtbuchanan the task message is written with |
It would be nice to have an overload of the
WithCriteria
extension which takes a message which will be printed out in case of the criteria being false, additionally to theSkipping task: xy
text. This would allow to give some information why a task was skipped to the user.The text was updated successfully, but these errors were encountered: