mirror of https://github.com/grpc/grpc-node.git
proto-loader: Warn if file not found in imports
This commit is contained in:
parent
2ca96a322f
commit
0c3b93fc3a
|
|
@ -302,6 +302,7 @@ function addIncludePathResolver(root: Protobuf.Root, includePaths: string[]) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
process.emitWarning(`${target} not found in any of the include paths ${includePaths}`);
|
||||||
return originalResolvePath(origin, target);
|
return originalResolvePath(origin, target);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue