Skip to content

Commit

Permalink
New: Be more verbose when throwing invalid wire type errors, see #602
Browse files Browse the repository at this point in the history
  • Loading branch information
dcodeIO committed Jan 2, 2017
1 parent 3c77553 commit 28ce07d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/reader.js
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ ReaderPrototype.skipType = function(wireType) {

/* istanbul ignore next */
default:
throw Error("invalid wire type: " + wireType);
throw Error("invalid wire type " + wireType + " at offset " + this.pos);
}
return this;
};
Expand Down

0 comments on commit 28ce07d

Please sign in to comment.