Skip to content

Commit 28ce07d

Browse files
committed
New: Be more verbose when throwing invalid wire type errors, see #602
1 parent 3c77553 commit 28ce07d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/reader.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ ReaderPrototype.skipType = function(wireType) {
487487

488488
/* istanbul ignore next */
489489
default:
490-
throw Error("invalid wire type: " + wireType);
490+
throw Error("invalid wire type " + wireType + " at offset " + this.pos);
491491
}
492492
return this;
493493
};

0 commit comments

Comments
 (0)