Show errors on failure (#5643)
Co-authored-by: Douwe Osinga <douwe@squareup.com>
This commit is contained in:
@@ -24,7 +24,8 @@ pub fn prepare_log_directory(component: &str, use_date_subdir: bool) -> Result<P
|
||||
component_dir
|
||||
};
|
||||
|
||||
fs::create_dir_all(&log_dir).context("Failed to create log directory")?;
|
||||
fs::create_dir_all(&log_dir)
|
||||
.with_context(|| format!("Failed to create log directory: {:?}", log_dir))?;
|
||||
|
||||
Ok(log_dir)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user