From 19636edc0cb2b10b12a5de7a6325196746a3fada Mon Sep 17 00:00:00 2001 From: Elias Steurer Date: Fri, 3 Jul 2020 14:37:43 +0200 Subject: [PATCH] Add error message --- ScreenPlayWidget/main.cpp | 1 + ScreenPlayWidget/src/widgetwindow.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ScreenPlayWidget/main.cpp b/ScreenPlayWidget/main.cpp index d3cfd00e..2364e95b 100644 --- a/ScreenPlayWidget/main.cpp +++ b/ScreenPlayWidget/main.cpp @@ -26,6 +26,7 @@ int main(int argc, char* argv[]) } ScreenPlaySDK sdk(argumentList.at(2), argumentList.at(3)); + // 1. Project path, 2. AppID, 3. Type WidgetWindow spwmw(argumentList.at(1), argumentList.at(2), argumentList.at(3)); QObject::connect(&sdk, &ScreenPlaySDK::sdkDisconnected, &spwmw, &WidgetWindow::qmlExit); diff --git a/ScreenPlayWidget/src/widgetwindow.cpp b/ScreenPlayWidget/src/widgetwindow.cpp index 4ed6cb67..05aec228 100644 --- a/ScreenPlayWidget/src/widgetwindow.cpp +++ b/ScreenPlayWidget/src/widgetwindow.cpp @@ -40,7 +40,7 @@ WidgetWindow::WidgetWindow(const QString projectPath, const QString appid, const configJsonDocument = QJsonDocument::fromJson(m_projectConfig.toUtf8(), &parseError); if (!(parseError.error == QJsonParseError::NoError)) { - qWarning("Settings Json Parse Error "); + qWarning() << "Settings Json Parse Error " << parseError.errorString() << configTmp.fileName(); } m_project = configJsonDocument.object();