Merge pull request #1309 from daleglass/log-resources-location

Log the location of the primary resources file
This commit is contained in:
Kalila 2021-08-19 17:12:37 -04:00 committed by GitHub
commit 0af1ef64ca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -805,11 +805,13 @@ bool setupEssentials(int& argc, char** argv, bool runningMarkerExisted) {
{
const QString resourcesBinaryFile = PathUtils::getRccPath();
qCInfo(interfaceapp) << "Loading primary resources from" << resourcesBinaryFile;
if (!QFile::exists(resourcesBinaryFile)) {
throw std::runtime_error("Unable to find primary resources");
throw std::runtime_error(QString("Unable to find primary resources from '%1'").arg(resourcesBinaryFile).toStdString());
}
if (!QResource::registerResource(resourcesBinaryFile)) {
throw std::runtime_error("Unable to load primary resources");
throw std::runtime_error(QString("Unable to load primary resources from '%1'").arg(resourcesBinaryFile).toStdString());
}
}