From 715429c13c162ce4695e1a6cfc9539b52e1214b6 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Fri, 8 Sep 2023 23:00:00 -0500 Subject: [PATCH] Print error dialogs and warning toasts to the log --- app/gui/CliStartStreamSegue.qml | 1 + app/gui/QuitSegue.qml | 1 + app/gui/StreamSegue.qml | 2 ++ 3 files changed, 4 insertions(+) diff --git a/app/gui/CliStartStreamSegue.qml b/app/gui/CliStartStreamSegue.qml index 3ae2d19a..3bb2e95f 100644 --- a/app/gui/CliStartStreamSegue.qml +++ b/app/gui/CliStartStreamSegue.qml @@ -26,6 +26,7 @@ Item { function onLaunchFailed(message) { errorDialog.text = message errorDialog.open() + console.error(message) } function onAppQuitRequired(appName) { diff --git a/app/gui/QuitSegue.qml b/app/gui/QuitSegue.qml index b3c627be..a356c056 100644 --- a/app/gui/QuitSegue.qml +++ b/app/gui/QuitSegue.qml @@ -18,6 +18,7 @@ Item { if (error !== undefined) { errorDialog.text = error errorDialog.open() + console.error(error) } // If we're supposed to launch another game after this, do so now diff --git a/app/gui/StreamSegue.qml b/app/gui/StreamSegue.qml index 5ddc1678..3d8af4a1 100644 --- a/app/gui/StreamSegue.qml +++ b/app/gui/StreamSegue.qml @@ -45,6 +45,7 @@ Item { { // Display the error dialog after Session::exec() returns streamSegueErrorDialog.text = text + console.error(text) } function displayLaunchWarning(text) @@ -56,6 +57,7 @@ Item { toast.text = text toast.timeout = 3000 toast.visible = true + console.warn(text) } function quitStarting()