[consider merging] stray bug: fixed a small issue with error messages on missing resources (redundant 'ERROR')

This commit is contained in:
Matthias Koefferlein 2024-03-22 22:36:59 +01:00
parent f4df6ec4ff
commit 91dae8b471
2 changed files with 3 additions and 3 deletions

View File

@ -519,7 +519,7 @@ HelpSource::get_image (const std::string &u)
{
QResource res (resource_url (QUrl::fromEncoded (u.c_str ()).path ()));
if (res.size () == 0) {
throw tl::Exception (tl::to_string (QObject::tr ("ERROR: no data found for resource ")) + u);
throw tl::Exception (tl::to_string (QObject::tr ("No data found for resource ")) + u);
}
QByteArray data;
@ -552,7 +552,7 @@ HelpSource::get_css (const std::string &u)
QResource res (resource_url (QUrl::fromEncoded (u.c_str ()).path ()));
if (res.size () == 0) {
throw tl::Exception (tl::to_string (QObject::tr ("ERROR: no data found for resource ")) + u);
throw tl::Exception (tl::to_string (QObject::tr ("No data found for resource ")) + u);
}
QByteArray data;

View File

@ -54,7 +54,7 @@ ResourceHelpProvider::get (lay::HelpSource * /*src*/, const std::string &path) c
QString qpath = tl::to_qstring (path);
QResource res (resource_url (qpath));
if (res.size () == 0) {
throw tl::Exception (tl::to_string (QObject::tr ("ERROR: no data found for resource ")) + tl::to_string (res.fileName ()));
throw tl::Exception (tl::to_string (QObject::tr ("No data found for resource ")) + tl::to_string (res.fileName ()));
}
QByteArray data;