Browse Source

Better base64 illegal character output.

Joel Martin 13 years ago
parent
commit
c6f3919cb0
1 changed files with 1 additions and 1 deletions
  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;
         }