diff options
author | sr55 <[email protected]> | 2012-11-10 11:28:09 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2012-11-10 11:28:09 +0000 |
commit | fefca02d1721f6206ebb5ccf9ae8fc930a94aebd (patch) | |
tree | d9d7f972abad009fc2268b8578c6f18dac4c38b5 /win/CS/HandBrake.ApplicationServices/Services | |
parent | b6c40879a36d8c0f6bafebd7714f6b39de621e7b (diff) |
WinGui: Better error messages from the user settings service.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5046 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/HandBrake.ApplicationServices/Services')
-rw-r--r-- | win/CS/HandBrake.ApplicationServices/Services/UserSettingService.cs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/win/CS/HandBrake.ApplicationServices/Services/UserSettingService.cs b/win/CS/HandBrake.ApplicationServices/Services/UserSettingService.cs index 042c2487c..ab77ce800 100644 --- a/win/CS/HandBrake.ApplicationServices/Services/UserSettingService.cs +++ b/win/CS/HandBrake.ApplicationServices/Services/UserSettingService.cs @@ -164,12 +164,13 @@ namespace HandBrake.ApplicationServices.Services File.Delete(this.settingsFile);
}
this.Save();
+
+ throw new GeneralApplicationException("Warning, your settings have been reset!", "Your user settings file was corrupted or inaccessible. Settings have been reset to defaults.", exc);
}
catch (Exception)
{
+ throw new GeneralApplicationException("Unable to load user settings.", "Your user settings file appears to be inaccessible or corrupted. You may have to delete the file and let HandBrake generate a new one.", exc);
}
-
- throw;
}
}
|