From 1debcc54c6bc897dc11923734501e4ce23923475 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Mon, 30 Sep 2019 17:18:43 +0100 Subject: update content broadcast error handling --- content/handlers/pdf/pdf.c | 4 ++-- 1 file 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; } -- cgit v1.2.3