Skip to content

Commit

Permalink
Better base64 illegal character output.
Browse files Browse the repository at this point in the history
  • Loading branch information
kanaka committed Feb 20, 2012
1 parent 3b30246 commit c6f3919
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/base64.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit c6f3919

Please sign in to comment.