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 ...@@ -197,8 +197,14 @@ namespace ATxCommon
/// </summary> /// </summary>
/// <param name="force">Update, independently of the last update timestamp.</param> /// <param name="force">Update, independently of the last update timestamp.</param>
public void Update(bool force = false) { public void Update(bool force = false) {
UpdateFreeSpace(force); try {
UpdateGraceLocation(force); UpdateFreeSpace(force);
UpdateGraceLocation(force);
}
catch (Exception ex) {
Log.Error("Updating storage status failed: {0}", ex.Message);
throw;
}
} }
/// <summary> /// <summary>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment