Skip to content

Commit c487d29

Browse files
committed
Handle file not found when loading bundle
1 parent 9da0252 commit c487d29

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/EasySign.CommandLine/BundleWorker.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,11 @@ protected bool LoadBundle(bool readOnly = true)
4646

4747
return true;
4848
}
49+
catch (FileNotFoundException fnfex)
50+
{
51+
Logger.LogError(fnfex, "Bundle file not found: {BundlePath}", Bundle.BundlePath);
52+
AnsiConsole.MarkupLine($"[red]File not found: {Bundle.BundlePath}[/]");
53+
}
4954
catch (Exception ex)
5055
{
5156
Logger.LogError(ex, "Failed to load bundle from file: {BundlePath}", Bundle.BundlePath);

0 commit comments

Comments
 (0)