diff options
Diffstat (limited to 'init/service_parser.cpp')
-rw-r--r-- | init/service_parser.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/init/service_parser.cpp b/init/service_parser.cpp index 33ed05097..ba351046a 100644 --- a/init/service_parser.cpp +++ b/init/service_parser.cpp @@ -152,6 +152,12 @@ Result<void> ServiceParser::ParseInterface(std::vector<std::string>&& args) { return Error() << "Interface name must not be a value name '" << interface_name << "'"; } + if (known_interfaces_ && known_interfaces_->count(interface_name) == 0) { + return Error() << "Interface is not in the known set of hidl_interfaces: '" + << interface_name << "'. Please ensure the interface is built " + << "by a hidl_interface target."; + } + const std::string fullname = interface_name + "/" + instance_name; for (const auto& svc : *service_list_) { |