Skip to content

Commit

Permalink
Fix exception handling regression: fallback to ConsoleAppFramework (#454
Browse files Browse the repository at this point in the history
)
  • Loading branch information
Mpdreamz authored Feb 10, 2025
1 parent 413d380 commit 7ef1648
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/docs-assembler/Cli/Filters.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ public override async Task InvokeAsync(ConsoleAppContext context, CancellationTo
return;
}

ConsoleApp.LogError(ex.ToString()); // .ToString() shows stacktrace, .Message can avoid showing stacktrace to user.
throw;

}
}
}
3 changes: 2 additions & 1 deletion src/docs-builder/Cli/Filters.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ public override async Task InvokeAsync(ConsoleAppContext context, CancellationTo
return;
}

ConsoleApp.LogError(ex.ToString());
throw;

}
}
}

0 comments on commit 7ef1648

Please sign in to comment.