better error throw
This commit is contained in:
parent
52e53edf63
commit
94edc2583e
@ -53,7 +53,7 @@ var Parser = {
|
||||
case UTF8.R:
|
||||
return Parser.parseR(buffer, offset);
|
||||
default:
|
||||
throw "Unsupported message id"
|
||||
throw new Error("Unsupported message ID");
|
||||
}
|
||||
},
|
||||
parseR: function(buffer, offset) {
|
||||
|
Loading…
Reference in New Issue
Block a user