Permalink
Browse files

New: Be more verbose when throwing invalid wire type errors, see #602

  • Loading branch information...
dcodeIO committed Jan 2, 2017
1 parent 3c77553 commit 28ce07d9812f5e1743afef95a94532d2c9488a84
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/reader.js
@@ -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;
};

0 comments on commit 28ce07d

Please sign in to comment.