git » remoteu2f » commit faf6440

proxy: Have a clear suggestion for "general error"

author Alberto Bertogli
2016-01-20 23:23:47 UTC
committer Alberto Bertogli
2016-01-20 23:23:47 UTC
parent b8daca3a449993b54eda731a18af05527f4c9305

proxy: Have a clear suggestion for "general error"

Javascript API's "general error" is often caused by missing u2f keys, so
mention that in the human-readable string to make the error messages more
useful.

remoteu2f-proxy/to_embed/remoteu2f.js +1 -1

diff --git a/remoteu2f-proxy/to_embed/remoteu2f.js b/remoteu2f-proxy/to_embed/remoteu2f.js
index 168beae..c0f2106 100644
--- a/remoteu2f-proxy/to_embed/remoteu2f.js
+++ b/remoteu2f-proxy/to_embed/remoteu2f.js
@@ -5,7 +5,7 @@ function handleKeyResponse(resp) {
     if (resp.errorCode != undefined && resp.errorCode != u2f.ErrorCodes.OK) {
         codeToText = {
             0: "OK",
-            1: "General error (hardware issues?)",
+            1: "General error (is the security key plugged in?)",
             2: "Bad request (please report)",
             3: "Unsupported configuration (please report)",
             4: "Device ineligible, did you forget to register it?",