db/upnp: Namei() returns error when no object was found
Don't fail silently.
This commit is contained in:
parent
91a513e87d
commit
2cb912e4f4
|
@ -575,7 +575,9 @@ UpnpDatabase::Namei(ContentDirectoryService* server,
|
||||||
odirent = dirent;
|
odirent = dirent;
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
return true;
|
error.Format(db_domain, DB_NOT_FOUND,
|
||||||
|
"No such object");
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -585,7 +587,8 @@ UpnpDatabase::Namei(ContentDirectoryService* server,
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
error.Format(db_domain, DB_NOT_FOUND, "No such object");
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// vpath is a parsed and writeable version of selection.uri. There is
|
// vpath is a parsed and writeable version of selection.uri. There is
|
||||||
|
|
Loading…
Reference in New Issue