Skip to content

Commit b98f09b

Browse files
committed
Fix exception handling regression: fallback to ConsoleAppFramework
1 parent b6fba64 commit b98f09b

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/docs-assembler/Cli/Filters.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ public override async Task InvokeAsync(ConsoleAppContext context, CancellationTo
4545
return;
4646
}
4747

48-
ConsoleApp.LogError(ex.ToString()); // .ToString() shows stacktrace, .Message can avoid showing stacktrace to user.
48+
throw;
49+
4950
}
5051
}
5152
}

src/docs-builder/Cli/Filters.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ public override async Task InvokeAsync(ConsoleAppContext context, CancellationTo
4444
return;
4545
}
4646

47-
ConsoleApp.LogError(ex.ToString());
47+
throw;
48+
4849
}
4950
}
5051
}

0 commit comments

Comments
 (0)