Permalink
Browse files

fix argument list error typo

  • Loading branch information...
1 parent c97c5c6 commit 4982a2ddded86b7d1b96a8c84b8af5e5ccc9f9a6 @tjfontaine committed Aug 28, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 struct.js
View
@@ -206,7 +206,7 @@ var pack = function(fmt) {
calls.forEach(function(c) { expected += c.size })
if (expected != values.length) {
- throw new Error("Argument mismatch, Expected: " + calls.length + " Received: " + arguments.length)
+ throw new Error("Argument mismatch, Expected: " + expected + " Received: " + values.length)
}
var pos = 0

0 comments on commit 4982a2d

Please sign in to comment.