Change logging call in main

Previously no file was being output.
This commit is contained in:
Vasily
2019-03-19 16:10:35 +01:00
committed by username223
parent 04c59d5f20
commit f86221d8fd
+3 -3
View File
@@ -48,12 +48,12 @@ int main( int argc, char* argv[] )
commandLineArgs.forceNoSound,
qmlEngine );
const auto path
= paths::binaryDirectoryFindFile( "res/qml/common/mainwidget.qml" );
constexpr auto widgetPath = "res/qml/common/mainwidget.qml";
const auto path = paths::binaryDirectoryFindFile( widgetPath );
if ( !path.has_value() )
{
LOG( ERROR ) << "Unable to find file '" << *path << "'.";
LOG( ERROR ) << "Unable to find file '" << widgetPath << "'.";
throw std::runtime_error(
"Unable to find critical file. See log for more information." );
}