summaryrefslogtreecommitdiff
path: root/image/muimage.c
diff options
context:
space:
mode:
Diffstat (limited to 'image/muimage.c')
-rw-r--r--image/muimage.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/image/muimage.c b/image/muimage.c
index 890457ab..ed3280b2 100644
--- a/image/muimage.c
+++ b/image/muimage.c
@@ -54,13 +54,18 @@ image_open_document(fz_context *ctx, const char *filename)
file = fz_open_file(ctx, filename);
if (!file)
- fz_throw(ctx, "cannot open file '%s': %s", filename, strerror(errno));
+ fz_throw(ctx, FZ_ERROR_GENERIC, "cannot open file '%s': %s", filename, strerror(errno));
- fz_try(ctx) {
+ fz_try(ctx)
+ {
doc = image_open_document_with_stream(ctx, file);
- } fz_always(ctx) {
+ }
+ fz_always(ctx)
+ {
fz_close(file);
- } fz_catch(ctx) {
+ }
+ fz_catch(ctx)
+ {
fz_rethrow(ctx);
}