diff --git a/package.json b/package.json index 5310e7f5..8cab5dcb 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "grpc-js-repository", - "version": "0.1.0", + "version": "0.1.1", "description": "Dummy package for the grpc-node repository", "private": true, "keywords": [], diff --git a/packages/grpc-native-core/index.js b/packages/grpc-native-core/index.js index 30a6ff3c..b7deb73b 100644 --- a/packages/grpc-native-core/index.js +++ b/packages/grpc-native-core/index.js @@ -143,6 +143,11 @@ exports.load = function load(filename, format, options) { } finally { ProtoBuf.convertFieldsToCamelCase = convertFieldsToCamelCaseOriginal; } + + if (!builder) { + throw new Error('Could not load file "' + filename + '"'); + } + return loadObject(builder.ns, options); }; diff --git a/packages/grpc-native-core/package.json b/packages/grpc-native-core/package.json index 3eaa3a83..a3e3ce2b 100644 --- a/packages/grpc-native-core/package.json +++ b/packages/grpc-native-core/package.json @@ -1,6 +1,6 @@ { "name": "grpc", - "version": "1.10.0-dev", + "version": "1.10.1-dev", "author": "Google Inc.", "description": "gRPC Library for Node", "homepage": "https://grpc.io/",