-
-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
// Customize help and error messages
config.SetExceptionHandler((ex, resolver) =>
{
if (ex is InvalidOperationException && ex.Message.Contains("Configuration is incomplete"))
{
// Don't show the full exception for configuration errors
AnsiConsole.MarkupLine($"[red]{ex.Message}[/]");
return -1;
}
AnsiConsole.WriteException(ex);
return -1;
});Metadata
Metadata
Assignees
Labels
No labels