From 3ea68bf231dd6f95a914b31f662def5c3ef5d8bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20Goli=C5=84ski?= Date: Mon, 4 Nov 2019 21:34:48 +0100 Subject: [PATCH] Stop when there are no caches to work with --- geostat.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/geostat.cpp b/geostat.cpp index 5686473..0dfd4ab 100644 --- a/geostat.cpp +++ b/geostat.cpp @@ -214,6 +214,10 @@ int main(int argc, char** argv) { // TODO: some cache deduplication is needed Debug(2) << "Caches read: " << cc.size() << '\n'; + if (cc.size() == 0) { + std::cout << "No caches found, aborting.\n"; + std::exit(EXIT_FAILURE); + } if (show_html) { std::cout << "\n";