Closed
Description
As far as I can tell, any call to fail!()
prints a diagnostic message to stderr. This is less than ideal for processes which would like to have tight control over the contents of stderr. There should be some task-local option to enable silent failure. Some possible ways this option might be implemented:
- Having an option for this in the TaskBuilder.
- Having a function to set it direction in the calling task. This is more convenient, but you might worry about a rogue library turning it on after you turned it off.
- Instead of disabling it, perhaps have an option to set a special failure writer instead of stderr.
In particular, I think that task::try()
should fail silently as in principle the failure message is returned by that function.
Metadata
Metadata
Assignees
Labels
No labels