Change logging call in main
Previously no file was being output.
This commit is contained in:
+3
-3
@@ -48,12 +48,12 @@ int main( int argc, char* argv[] )
|
|||||||
commandLineArgs.forceNoSound,
|
commandLineArgs.forceNoSound,
|
||||||
qmlEngine );
|
qmlEngine );
|
||||||
|
|
||||||
const auto path
|
constexpr auto widgetPath = "res/qml/common/mainwidget.qml";
|
||||||
= paths::binaryDirectoryFindFile( "res/qml/common/mainwidget.qml" );
|
const auto path = paths::binaryDirectoryFindFile( widgetPath );
|
||||||
|
|
||||||
if ( !path.has_value() )
|
if ( !path.has_value() )
|
||||||
{
|
{
|
||||||
LOG( ERROR ) << "Unable to find file '" << *path << "'.";
|
LOG( ERROR ) << "Unable to find file '" << widgetPath << "'.";
|
||||||
throw std::runtime_error(
|
throw std::runtime_error(
|
||||||
"Unable to find critical file. See log for more information." );
|
"Unable to find critical file. See log for more information." );
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user