Merge "init: use FQName parse"

This commit is contained in:
Treehugger Robot 2018-03-07 21:51:17 +00:00 committed by Gerrit Code Review
commit 92ca281cba

View file

@ -446,8 +446,8 @@ Result<Success> Service::ParseInterface(const std::vector<std::string>& args) {
const std::string& interface_name = args[1];
const std::string& instance_name = args[2];
const FQName fq_name = FQName(interface_name);
if (!fq_name.isValid()) {
FQName fq_name;
if (!FQName::parse(interface_name, &fq_name)) {
return Error() << "Invalid fully-qualified name for interface '" << interface_name << "'";
}