diff --git a/cli/pdfprocessor.cpp b/cli/pdfprocessor.cpp index ec20c9e..171e27f 100644 --- a/cli/pdfprocessor.cpp +++ b/cli/pdfprocessor.cpp @@ -11,7 +11,7 @@ QVector PdfProcessor::process(const QByteArray &data) const QScopedPointer doc(Poppler::Document::loadFromData(data)); if(doc.isNull()) { - return {}; + throw QSSGeneralException("Failed to process pdf data"); } QRectF entirePage;