diff --git a/main.cpp b/main.cpp index 5baaa66..193fbde 100644 --- a/main.cpp +++ b/main.cpp @@ -21,6 +21,9 @@ std::unordered_map loadCitations(const std::string& fi std::exit(1); } + if (!citationJson.contains("citations")) { + std::exit(1); + } nlohmann::json data = citationJson["citations"]; std::unordered_map citations;