From f86221d8fd725277e9b0f34d106b91c5b5eff590 Mon Sep 17 00:00:00 2001 From: Vasily Date: Sun, 17 Mar 2019 19:18:04 +0100 Subject: [PATCH] Change logging call in main Previously no file was being output. --- src/main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 404b786..d90e56b 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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." ); }