Skip to content

Commit

Permalink
Merge pull request gitextensions#5997 from RussKie/fix_3929_crashes_o…
Browse files Browse the repository at this point in the history
…n_startup

Don't crash the app if unable to read settings
  • Loading branch information
RussKie committed Dec 27, 2018
2 parents 6855642 + a9d4250 commit 7bfc7ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions GitCommands/Settings/FileSettingsCache.cs
Original file line number Diff line number Diff line change
Expand Up @@ -173,10 +173,10 @@ protected override void LoadImpl()
_lastFileRead = DateTime.UtcNow;
_fileWatcher.EnableRaisingEvents = _canEnableFileWatcher;
}
catch (IOException e)
catch (Exception e)
{
// TODO: should we report it to the user somehow?
Debug.WriteLine(e.Message);
throw;
}
}
else
Expand Down

0 comments on commit 7bfc7ae

Please sign in to comment.