[okular] [Bug 444297] Okular "Could not open" a certain PDF, with no other details

Wolfgang Faust bugzilla_noreply at kde.org
Sun Dec 5 05:17:46 GMT 2021


https://bugs.kde.org/show_bug.cgi?id=444297

--- Comment #15 from Wolfgang Faust <wolfgangmcq+acct-bugs.kde.org at gmail.com> ---
I did a bit of poking around in the Okular source code to see if I could
improve this error message, and discovered that it's coming from this line
(https://invent.kde.org/graphics/okular/-/blob/9144211ba26fed471e2e493ca1febead253edfe6/part/part.cpp#L1775): 

    QString errorMessage = i18n("Could not open %1. %2", url.toDisplayString(),
QStringLiteral("\n%1").arg(m_document->openError()));

which actually *does* have a parameter for additional error details, but I
couldn't work out where they were supposed to come from. Seems like maybe the
problem is just that something forgot to set this string before returning the
error?

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Okular-devel mailing list