Skip to content
Snippets Groups Projects
Commit 2b2bff7f authored by Niko Ehrenfeuchter's avatar Niko Ehrenfeuchter :keyboard:
Browse files

Catch and log exceptions when updating storage status

Relates to #20
parent 8f12ae8a
No related branches found
No related tags found
No related merge requests found
......@@ -197,8 +197,14 @@ namespace ATxCommon
/// </summary>
/// <param name="force">Update, independently of the last update timestamp.</param>
public void Update(bool force = false) {
UpdateFreeSpace(force);
UpdateGraceLocation(force);
try {
UpdateFreeSpace(force);
UpdateGraceLocation(force);
}
catch (Exception ex) {
Log.Error("Updating storage status failed: {0}", ex.Message);
throw;
}
}
/// <summary>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment