summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2019-09-30 17:18:43 +0100
committerVincent Sanders <vince@kyllikki.org>2019-09-30 17:18:43 +0100
commit1debcc54c6bc897dc11923734501e4ce23923475 (patch)
tree7d66d9901d264d65f25e0d48622ffa7f43bdc94e
parentdd422bb7045f958adb5bab9786209d6a825f2613 (diff)
downloadnetsurf-vince/pdf.tar.gz
netsurf-vince/pdf.tar.bz2
update content broadcast error handlingvince/pdf
-rw-r--r--content/handlers/pdf/pdf.c4
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;
}