mirror of
https://github.com/KLayout/klayout.git
synced 2026-09-02 02:47:48 +02:00
[consider merging] stray bug: fixed a small issue with error messages on missing resources (redundant 'ERROR')
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user