summaryrefslogtreecommitdiff
path: root/content/handlers/pdf/pdf.c
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2019-09-30 17:18:43 +0100
committerVincent Sanders <vince@kyllikki.org>2020-12-11 16:20:57 +0000
commit1df87524974c8d4d76ed1f48b1ed216c7ebe6d4c (patch)
tree5ab592423f2eecb57956ce36488f9f1564969b99 /content/handlers/pdf/pdf.c
parent5c0eca30a3cd711d87bd640af1422c074aeede48 (diff)
downloadnetsurf-1df87524974c8d4d76ed1f48b1ed216c7ebe6d4c.tar.gz
netsurf-1df87524974c8d4d76ed1f48b1ed216c7ebe6d4c.tar.bz2
update content broadcast error handling
Diffstat (limited to 'content/handlers/pdf/pdf.c')
-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;
}