Fix serializer error handling, update ProtoBuf.js dependency

pull/10204/head
murgatroid99 8 years ago
parent 5b5fdb7349
commit a5ea8f2150
  1. 2
      package.json
  2. 2
      src/node/src/protobuf_js_6_common.js
  3. 2
      templates/package.json.template

@ -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": {

Loading…
Cancel
Save