mirror of https://github.com/grpc/grpc-node.git
FIX-MISSING-FILE adding error handling for missing files on load
This commit is contained in:
parent
07ace87c1a
commit
08b39b5991
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "grpc-js-repository",
|
"name": "grpc-js-repository",
|
||||||
"version": "0.1.0",
|
"version": "0.1.1",
|
||||||
"description": "Dummy package for the grpc-node repository",
|
"description": "Dummy package for the grpc-node repository",
|
||||||
"private": true,
|
"private": true,
|
||||||
"keywords": [],
|
"keywords": [],
|
||||||
|
|
|
||||||
|
|
@ -143,6 +143,11 @@ exports.load = function load(filename, format, options) {
|
||||||
} finally {
|
} finally {
|
||||||
ProtoBuf.convertFieldsToCamelCase = convertFieldsToCamelCaseOriginal;
|
ProtoBuf.convertFieldsToCamelCase = convertFieldsToCamelCaseOriginal;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!builder) {
|
||||||
|
throw new Error('Could not load file "' + filename + '"');
|
||||||
|
}
|
||||||
|
|
||||||
return loadObject(builder.ns, options);
|
return loadObject(builder.ns, options);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "grpc",
|
"name": "grpc",
|
||||||
"version": "1.10.0-dev",
|
"version": "1.10.1-dev",
|
||||||
"author": "Google Inc.",
|
"author": "Google Inc.",
|
||||||
"description": "gRPC Library for Node",
|
"description": "gRPC Library for Node",
|
||||||
"homepage": "https://grpc.io/",
|
"homepage": "https://grpc.io/",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue