mirror of
https://gitlab.computer.surgery/matrix/grapevine.git
synced 2025-12-17 15:51:23 +01:00
reject overlapping media and database paths
This commit is contained in:
parent
81a449d1d2
commit
b01b70fc20
20 changed files with 146 additions and 4 deletions
|
|
@ -134,8 +134,14 @@ pub(crate) enum Config {
|
|||
#[error("failed to parse configuration file {1:?}")]
|
||||
Parse(#[source] toml::de::Error, PathBuf),
|
||||
|
||||
#[error("failed to canonicalize path {}", .1.display())]
|
||||
Canonicalize(#[source] std::io::Error, PathBuf),
|
||||
|
||||
#[error("registration token must not be empty")]
|
||||
RegistrationTokenEmpty,
|
||||
|
||||
#[error("database and media paths overlap")]
|
||||
DatabaseMediaOverlap,
|
||||
}
|
||||
|
||||
/// Errors that can occur while searching for a config file
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue