Skip to content

Commit 09aeaef

Browse files
committed
Record configuration error in log
1 parent 9e3e553 commit 09aeaef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/EasySign.Cli/Program.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,11 @@ private static int Main(string[] args)
5555
config = JsonSerializer.Deserialize(fs, typeof(CommandProviderConfiguration), SourceGenerationConfigurationContext.Default) as CommandProviderConfiguration ?? new CommandProviderConfiguration();
5656
fs.Dispose();
5757
}
58-
catch
58+
catch (Exception ex)
5959
{
6060
fs.Dispose();
6161

62-
appLogger.Warning("Failed to load configuration from {ConfigPath}", ConfigPath);
62+
appLogger.Warning(ex, "Failed to load configuration from {ConfigPath}", ConfigPath);
6363
config = null;
6464

6565
appLogger.Information("Creating backup of the old configuration file at {ConfigPath}.old", ConfigPath + ".old");

0 commit comments

Comments
 (0)