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) {
|
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;
|
||||||
|
|
Loading…
Reference in a new issue