feat(config): improve error messages
This commit is contained in:
parent
11edf080de
commit
dc6b11cfc8
|
@ -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
|
||||||
|
|
|
@ -64,7 +64,7 @@ impl ErrorRecord {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug)]
|
#[derive(Debug, PartialEq)]
|
||||||
pub enum ErrorLevel {
|
pub enum ErrorLevel {
|
||||||
Error,
|
Error,
|
||||||
Warning,
|
Warning,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user