Bläddra i källkod

Better base64 illegal character output.

Joel Martin 13 år sedan
förälder
incheckning
c6f3919cb0
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      include/base64.js

+ 1 - 1
include/base64.js

@@ -116,7 +116,7 @@ decode: function (data, offset) {
         padding = (data.charAt(i) === pad);
         // Skip illegal characters and whitespace
         if (c === -1) {
-            console.error("Illegal character '" + data.charCodeAt(i) + "'");
+            console.error("Illegal character code " + data.charCodeAt(i) + " at position " + i);
             continue;
         }