From 2592c24388d64153380dc452b1c4ccc00d42463c Mon Sep 17 00:00:00 2001 From: Samuel Mannehed Date: Thu, 9 Nov 2017 10:12:44 +0100 Subject: [PATCH] Translate user visible text And make the log message a bit more detailed --- app/ui.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/ui.js b/app/ui.js index 7ab82f5a..2c9e3961 100644 --- a/app/ui.js +++ b/app/ui.js @@ -423,9 +423,8 @@ var UI = { UI.showStatus(_("Disconnected")); break; default: - msg = "Invalid UI state"; - Log.Error(msg); - UI.showStatus(msg, 'error'); + Log.Error("Invalid visual state: " + event.detail.state); + UI.showStatus(_("Internal error"), 'error'); break; }