mirror of
https://gitlab.computer.surgery/matrix/grapevine.git
synced 2025-12-17 07:41:23 +01:00
move config check into config load function
This commit is contained in:
parent
75ef57e0ce
commit
e9caf228b3
3 changed files with 11 additions and 6 deletions
|
|
@ -95,6 +95,9 @@ pub(crate) enum Config {
|
|||
|
||||
#[error("failed to parse configuration file {1:?}")]
|
||||
Parse(#[source] toml::de::Error, PathBuf),
|
||||
|
||||
#[error("registration token must not be empty")]
|
||||
RegistrationTokenEmpty,
|
||||
}
|
||||
|
||||
/// Errors that can occur while searching for a config file
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue