瀏覽代碼

Better base64 illegal character output.

Joel Martin 13 年之前
父節點
當前提交
c6f3919cb0
共有 1 個文件被更改,包括 1 次插入1 次删除
  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;
         }