Return correct Errors and replace panic, fix misc review issues
Remove EventJson todo comments, clean up Cargo.toml commented ruma deps.
This commit is contained in:
parent
ddc7598870
commit
84dcb885a7
5 changed files with 20 additions and 43 deletions
|
@ -32,7 +32,7 @@ impl Globals {
|
|||
.unwrap_or("localhost")
|
||||
.to_owned(),
|
||||
)
|
||||
.map_err(|_| Error::bad_database("Invalid server name"))?,
|
||||
.map_err(|_| Error::BadConfig("Invalid server name"))?,
|
||||
registration_disabled: config.get_bool("registration_disabled").unwrap_or(false),
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue