Skip to content

Add ability to not swallow exceptions  #85

@johnchandlerwatson

Description

@johnchandlerwatson

When using Oakton my team would like to handle exceptions for all commands in Program.cs. Right now exceptions are swallowed here:

catch (Exception ex)
{    
     AnsiConsole.Write("[red]ERROR:[/]");
     AnsiConsole.WriteException(ex);
     return 1;
}

Command Executor line 54

in Program one might assume/desire for this to throw an exception:

await executor.ExecuteAsync(args);

maybe opt-in setting on CommandFactory when configuring your CommandExecutor?

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