From 4eda2de4db02a46a5244fe7f63f7a3ca8d3c9ee9 Mon Sep 17 00:00:00 2001 From: malc Date: Wed, 5 Jun 2019 18:32:36 +0300 Subject: [PATCH] Communicate failure reason --- link.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/link.c b/link.c index 538479c..78a88e9 100644 --- a/link.c +++ b/link.c @@ -1372,7 +1372,8 @@ static void * mainloop (void UNUSED_ATTR *unused) } fz_catch (state.ctx) { utf8filename = mbtoutf8 (filename); - printd ("msg Could not open %s", utf8filename); + printd ("emsg Error loading %s: %s", + utf8filename, fz_caught_message (state.ctx)); if (utf8filename != filename) { free (utf8filename); } -- 2.11.4.GIT