diff --git a/file.c b/file.c index c4032c1f2..0263da457 100644 --- a/file.c +++ b/file.c @@ -105,6 +105,9 @@ int try_to_open_zip(const char *filename, struct memblock *mem) success++; } subsurface_zip_close(zip); + + if (!success) + return report_error(translate("gettextFromC", "No dives in the input file '%s'"), filename); } return success; }