Skip to content

Option to have silent failure #16088

Closed
Closed
@SiegeLord

Description

@SiegeLord

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:

  1. Having an option for this in the TaskBuilder.
  2. 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.
  3. 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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions