From d5a5fab2ac236fc92546d3e76bdb74effa229754 Mon Sep 17 00:00:00 2001 From: Michael Zanetti Date: Mon, 13 Feb 2023 15:02:26 +0100 Subject: [PATCH] Improve wording for unknown error --- nymea-app/ui/components/ErrorDialog.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nymea-app/ui/components/ErrorDialog.qml b/nymea-app/ui/components/ErrorDialog.qml index 9e6cfa47..d35df8d0 100644 --- a/nymea-app/ui/components/ErrorDialog.qml +++ b/nymea-app/ui/components/ErrorDialog.qml @@ -43,7 +43,7 @@ NymeaDialog { // Legacy as some places might still use strings instead of enums property string errorCode: "" - text: qsTr("An unexpected error happened. We're sorry for that.") + + text: qsTr("An unexpected error happened. Sorry about that.") + (errorCode.length > 0 ? "\n\n" + qsTr("Error code: %1").arg(errorCode) : "") + (error != 0 ? "\n\n" + qsTr("Error code: %1").arg(error) : "")