summaryrefslogtreecommitdiff
path: root/source/xps
diff options
context:
space:
mode:
Diffstat (limited to 'source/xps')
-rw-r--r--source/xps/xps-zip.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/source/xps/xps-zip.c b/source/xps/xps-zip.c
index ab8c60d7..3759c4b6 100644
--- a/source/xps/xps-zip.c
+++ b/source/xps/xps-zip.c
@@ -182,21 +182,14 @@ xps_open_document(fz_context *ctx, const char *filename)
}
file = fz_open_file(ctx, filename);
- if (!file)
- fz_throw(ctx, FZ_ERROR_GENERIC, "cannot open file '%s': %s", filename, strerror(errno));
fz_try(ctx)
- {
doc = xps_open_document_with_stream(ctx, file);
- }
fz_always(ctx)
- {
fz_drop_stream(ctx, file);
- }
fz_catch(ctx)
- {
fz_rethrow_message(ctx, "cannot load document '%s'", filename);
- }
+
return doc;
}