error enum cleanup

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk 2024-06-14 18:29:21 +00:00
parent fbcdb3860a
commit a6edaad6fc
4 changed files with 54 additions and 67 deletions

View file

@ -159,7 +159,7 @@ impl Service {
.write()
.await
.remove(service_name)
.ok_or_else(|| crate::Error::AdminCommand("Appservice not found"))?;
.ok_or_else(|| crate::Error::Err("Appservice not found".to_owned()))?;
// remove the appservice from the database
self.db.unregister_appservice(service_name)?;