From: John Darrington Date: Mon, 25 Feb 2013 10:25:12 +0000 (+0100) Subject: Issue error message if spreadsheet does not exist X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4cc324dc484ba7129a01e5fe924543a09fbc0e07;p=pspp Issue error message if spreadsheet does not exist --- diff --git a/src/data/ods-reader.c b/src/data/ods-reader.c index 7c12af2215..07eef74563 100644 --- a/src/data/ods-reader.c +++ b/src/data/ods-reader.c @@ -539,7 +539,14 @@ ods_probe (const char *filename, bool report_errors) struct zip_reader *zr = zip_reader_create (filename, &errs); if (zr == NULL) - return NULL; + { + if (report_errors) + { + msg (ME, _("Cannot open %s as a OpenDocument file: %s"), + filename, ds_cstr (&errs)); + } + return NULL; + } sheet_count = get_sheet_count (zr);