summaryrefslogtreecommitdiff
path: root/fitz/stm_open.c
diff options
context:
space:
mode:
Diffstat (limited to 'fitz/stm_open.c')
-rw-r--r--fitz/stm_open.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fitz/stm_open.c b/fitz/stm_open.c
index 74346f73..81eb819e 100644
--- a/fitz/stm_open.c
+++ b/fitz/stm_open.c
@@ -55,7 +55,7 @@ static int read_file(fz_stream *stm, unsigned char *buf, int len)
{
int n = read(*(int*)stm->state, buf, len);
if (n < 0)
- return fz_throw("read error: %s", strerror(errno));
+ return fz_error_make("read error: %s", strerror(errno));
return n;
}