aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/db/UpnpDatabasePlugin.cxx7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/db/UpnpDatabasePlugin.cxx b/src/db/UpnpDatabasePlugin.cxx
index 258122200..8a99e9cd6 100644
--- a/src/db/UpnpDatabasePlugin.cxx
+++ b/src/db/UpnpDatabasePlugin.cxx
@@ -575,7 +575,9 @@ UpnpDatabase::Namei(ContentDirectoryService* server,
odirent = dirent;
return true;
} else {
- return true;
+ error.Format(db_domain, DB_NOT_FOUND,
+ "No such object");
+ return false;
}
}
}
@@ -585,7 +587,8 @@ UpnpDatabase::Namei(ContentDirectoryService* server,
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