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

View file

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