Report JSON parsing errors inside the application

This commit is contained in:
Daniel Schulte 2020-12-01 23:20:57 +01:00
parent 1d06834848
commit a557165850
1 changed files with 1 additions and 1 deletions

View File

@ -472,7 +472,7 @@ std::optional<json> load_json(const std::string &filename) {
ifs >> data;
return data;
} catch (json::parse_error &err) {
fprintf(stderr, "Failed to parse JSON file %s: %s\n", filename.c_str(), err.what());
tui_abort("Failed to parse JSON file %s: %s", filename.c_str(), err.what());
return {};
}
}