error enum cleanup
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
parent
fbcdb3860a
commit
a6edaad6fc
4 changed files with 54 additions and 67 deletions
|
@ -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)?;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue