mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-08 23:57:19 +02:00
Log the location of the primary resources file
Also emit the full path to the file in the exception
This commit is contained in:
parent
6eb7b9ecff
commit
8a8093e529
1 changed files with 4 additions and 2 deletions
|
@ -805,11 +805,13 @@ bool setupEssentials(int& argc, char** argv, bool runningMarkerExisted) {
|
||||||
|
|
||||||
{
|
{
|
||||||
const QString resourcesBinaryFile = PathUtils::getRccPath();
|
const QString resourcesBinaryFile = PathUtils::getRccPath();
|
||||||
|
qCInfo(interfaceapp) << "Loading primary resources from" << resourcesBinaryFile;
|
||||||
|
|
||||||
if (!QFile::exists(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)) {
|
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());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue