diff options
Diffstat (limited to 'subsurface-core/file.c')
-rw-r--r-- | subsurface-core/file.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/subsurface-core/file.c b/subsurface-core/file.c index c4032c1f2..0263da457 100644 --- a/subsurface-core/file.c +++ b/subsurface-core/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; } |