feat(config): improve error messages

This commit is contained in:
Federico Terzi 2021-07-19 20:50:14 +02:00
parent 11edf080de
commit dc6b11cfc8
2 changed files with 2 additions and 2 deletions

View File

@ -83,7 +83,7 @@ impl DefaultConfigStore {
let mut non_fatal_errors = Vec::new(); let mut non_fatal_errors = Vec::new();
let default = let default =
ResolvedConfig::load(&default_file, None).context("failed to load default configuration")?; ResolvedConfig::load(&default_file, None).context("failed to load default.yml configuration")?;
debug!("loaded default config at path: {:?}", default_file); debug!("loaded default config at path: {:?}", default_file);
// Then the others // Then the others

View File

@ -64,7 +64,7 @@ impl ErrorRecord {
} }
} }
#[derive(Debug)] #[derive(Debug, PartialEq)]
pub enum ErrorLevel { pub enum ErrorLevel {
Error, Error,
Warning, Warning,