Translate user visible text

And make the log message a bit more detailed
This commit is contained in:
Samuel Mannehed 2017-11-09 10:12:44 +01:00
parent 5b20d338ce
commit 2592c24388
1 changed files with 2 additions and 3 deletions

View File

@ -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;
}