diff options
author | Vincent Sanders <vince@kyllikki.org> | 2019-09-30 17:18:43 +0100 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2019-09-30 17:18:43 +0100 |
commit | 1debcc54c6bc897dc11923734501e4ce23923475 (patch) | |
tree | 7d66d9901d264d65f25e0d48622ffa7f43bdc94e /content/handlers/pdf/pdf.c | |
parent | dd422bb7045f958adb5bab9786209d6a825f2613 (diff) | |
download | netsurf-1debcc54c6bc897dc11923734501e4ce23923475.tar.gz netsurf-1debcc54c6bc897dc11923734501e4ce23923475.tar.bz2 |
update content broadcast error handling
Diffstat (limited to 'content/handlers/pdf/pdf.c')
-rw-r--r-- | content/handlers/pdf/pdf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/content/handlers/pdf/pdf.c b/content/handlers/pdf/pdf.c index ec283aa3a..a39819249 100644 --- a/content/handlers/pdf/pdf.c +++ b/content/handlers/pdf/pdf.c @@ -137,13 +137,13 @@ static bool pdf_convert(struct content *c) content_data, content_length); if (pdfres != NSPDFERROR_OK) { - content_broadcast_errorcode(c, NSERROR_INVALID); + content_broadcast_error(c, NSERROR_INVALID, NULL); return false; } pdfres = nspdf_page_count(pdfc->doc, &pdfc->page_count); if (pdfres != NSPDFERROR_OK) { - content_broadcast_errorcode(c, NSERROR_INVALID); + content_broadcast_error(c, NSERROR_INVALID, NULL); return false; } |