mirror of https://github.com/KLayout/klayout.git
[consider merging] stray bug: fixed a small issue with error messages on missing resources (redundant 'ERROR')
This commit is contained in:
parent
f4df6ec4ff
commit
91dae8b471
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue