Handle json parsing errors when loading shift times history
Closes #1802.
This commit is contained in:
parent
6159f1587d
commit
9ec4059096
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue