mirror of
https://github.com/brianc/node-postgres.git
synced 2026-01-18 15:55:05 +00:00
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…
x
Reference in New Issue
Block a user