diff options
author | murgatroid99 <mlumish@google.com> | 2017-04-03 16:03:58 -0700 |
---|---|---|
committer | murgatroid99 <mlumish@google.com> | 2017-04-03 16:03:58 -0700 |
commit | a5ea8f2150825e14aa9da1758fd02cff37035ebb (patch) | |
tree | 9bc68fc7a8b918081a53c7dd7b097663e88bca26 /src | |
parent | 5b5fdb7349bb886f758ec74abe505ca90578467f (diff) |
Fix serializer error handling, update ProtoBuf.js dependency
Diffstat (limited to 'src')
-rw-r--r-- | src/node/src/protobuf_js_6_common.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node/src/protobuf_js_6_common.js b/src/node/src/protobuf_js_6_common.js index baa62cce86..7e523731d3 100644 --- a/src/node/src/protobuf_js_6_common.js +++ b/src/node/src/protobuf_js_6_common.js @@ -80,7 +80,7 @@ exports.serializeCls = function serializeCls(cls) { var message = cls.fromObject(arg); var errMsg = cls.verify(message); if (errMsg) { - throw errMsg; + throw Error(errMsg); } return cls.encode(message).finish(); }; |