diff --git a/src/TrashLib/Repo/RepoUpdater.cs b/src/TrashLib/Repo/RepoUpdater.cs index 6112ef51..95cac556 100644 --- a/src/TrashLib/Repo/RepoUpdater.cs +++ b/src/TrashLib/Repo/RepoUpdater.cs @@ -39,8 +39,9 @@ public class RepoUpdater : IRepoUpdater { await CheckoutAndUpdateRepo(); } - catch (GitCmdException) + catch (GitCmdException e) { + _log.Debug(e, "Non-zero exit code {ExitCode} while executing Git command: {Error}", e.ExitCode, e.Error); _log.Warning("Deleting local git repo and retrying git operation due to error..."); _fileUtils.DeleteReadOnlyDirectory(RepoPath.FullName); await CheckoutAndUpdateRepo();