Print error dialogs and warning toasts to the log

This commit is contained in:
Cameron Gutman 2023-09-08 23:00:00 -05:00
parent 7976189d56
commit 715429c13c
3 changed files with 4 additions and 0 deletions

View file

@ -26,6 +26,7 @@ Item {
function onLaunchFailed(message) { function onLaunchFailed(message) {
errorDialog.text = message errorDialog.text = message
errorDialog.open() errorDialog.open()
console.error(message)
} }
function onAppQuitRequired(appName) { function onAppQuitRequired(appName) {

View file

@ -18,6 +18,7 @@ Item {
if (error !== undefined) { if (error !== undefined) {
errorDialog.text = error errorDialog.text = error
errorDialog.open() errorDialog.open()
console.error(error)
} }
// If we're supposed to launch another game after this, do so now // If we're supposed to launch another game after this, do so now

View file

@ -45,6 +45,7 @@ Item {
{ {
// Display the error dialog after Session::exec() returns // Display the error dialog after Session::exec() returns
streamSegueErrorDialog.text = text streamSegueErrorDialog.text = text
console.error(text)
} }
function displayLaunchWarning(text) function displayLaunchWarning(text)
@ -56,6 +57,7 @@ Item {
toast.text = text toast.text = text
toast.timeout = 3000 toast.timeout = 3000
toast.visible = true toast.visible = true
console.warn(text)
} }
function quitStarting() function quitStarting()