diff --git a/src/commands.rs b/src/commands.rs index 2672f7a..7943d7f 100644 --- a/src/commands.rs +++ b/src/commands.rs @@ -244,7 +244,16 @@ impl Configurable for EntryPoint { WriteLogger::new( level_filter, simplelog::Config::default(), - File::options().create(true).append(true).open(file)?, + File::options() + .create(true) + .append(true) + .open(file) + .map_err(|e| { + FrameworkErrorKind::PathError { + name: Some(file.clone()), + } + .context(e) + })?, ), ]) .map_err(|e| FrameworkErrorKind::ConfigError.context(e))?,