From c6f3919cb097096454b783b9cd3a9c3586c229e9 Mon Sep 17 00:00:00 2001 From: Joel Martin Date: Mon, 20 Feb 2012 15:48:39 -0600 Subject: [PATCH] Better base64 illegal character output. --- include/base64.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/base64.js b/include/base64.js index c68b33aa..e9b3c522 100644 --- a/include/base64.js +++ b/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; }