Skip to content
Snippets Groups Projects
Commit a5ea8f21 authored by murgatroid99's avatar murgatroid99
Browse files

Fix serializer error handling, update ProtoBuf.js dependency

parent 5b5fdb73
No related branches found
No related tags found
No related merge requests found
......@@ -34,7 +34,7 @@
"lodash": "^4.15.0",
"nan": "^2.0.0",
"node-pre-gyp": "^0.6.0",
"protobufjs": "^6.0.0",
"protobufjs": "^6.7.0",
"cares": "^1.1.5"
},
"devDependencies": {
......
......@@ -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();
};
......
......@@ -36,7 +36,7 @@
"lodash": "^4.15.0",
"nan": "^2.0.0",
"node-pre-gyp": "^0.6.0",
"protobufjs": "^6.0.0",
"protobufjs": "^6.7.0",
"cares": "^1.1.5"
},
"devDependencies": {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment