diff options
-rw-r--r-- | fitz/stm_open.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fitz/stm_open.c b/fitz/stm_open.c index 18079f4b..dfbc42ae 100644 --- a/fitz/stm_open.c +++ b/fitz/stm_open.c @@ -98,7 +98,7 @@ fz_open_file(fz_context *ctx, const char *name) { int fd = open(name, O_BINARY | O_RDONLY, 0); if (fd == -1) - return NULL; + fz_throw(ctx, "Failed to open %s", name); return fz_open_fd(ctx, fd); } |