Skip to content

Commit

Permalink
Updated lib/decode
Browse files Browse the repository at this point in the history
Removed offset in error message in decode.find(),
it was totally useless, since i === data.length in that case.
  • Loading branch information
Jonas Hermsmeier committed Jul 10, 2013
1 parent 99f7300 commit 1954733
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/decode.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,9 @@ decode.find = function( chr ) {
}

throw new Error(
'Invalid data: Missing delimiter "' + String.fromCharCode( chr ) +
'" [0x' + chr.toString( 16 ) + '] at offset 0x' + i.toString( 16 ) + ' (' + i + ')'
'Invalid data: Missing delimiter "' +
String.fromCharCode( chr ) + '" [0x' +
chr.toString( 16 ) + ']'
)

}
Expand Down

0 comments on commit 1954733

Please sign in to comment.