Skip to content

Commit b05fe5b

Browse files
committed
fix tests
1 parent cbf4bf6 commit b05fe5b

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

coman/src/config.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ impl Layer {
159159

160160
pub fn write(&self) -> Result<()> {
161161
let contents = self.data.to_string();
162-
std::fs::write(&self.source, contents).wrap_err("couldn't write config")
162+
std::fs::write(&self.source, contents).wrap_err(format!("couldn't write config {}", self.source.display()))
163163
}
164164
}
165165

@@ -465,6 +465,11 @@ mod tests {
465465

466466
let home_dir = tempdir().expect("couldn't create temp dir");
467467
let global_config = home_dir.path().join(".config").join("coman").join("coman.toml");
468+
println!(
469+
"global: {}, project: {}",
470+
global_config.display(),
471+
project_config.display()
472+
);
468473
std::fs::create_dir_all(global_config.parent().unwrap()).expect("couldn't create config dir");
469474
std::fs::write(&global_config, "[cscs]\ncurrent_system = \"global\"").expect("couldn't create config file");
470475

0 commit comments

Comments
 (0)