Handle json parsing errors when loading shift times history

Closes #1802.
This commit is contained in:
Thomas Goyne 2014-08-24 07:42:56 -07:00
parent 6159f1587d
commit 9ec4059096
1 changed files with 3 additions and 0 deletions

View File

@ -344,6 +344,9 @@ void DialogShiftTimes::LoadHistory() {
catch (agi::fs::FileSystemError const& e) {
LOG_D("dialog_shift_times/load_history") << "Cannot load shift times history: " << e.GetMessage();
}
catch (json::Exception const& e) {
LOG_D("dialog_shift_times/load_history") << "Cannot load shift times history: " << e.what();
}
catch (...) {
history_box->Thaw();
throw;