Fix wrong path being passed to write_log

This commit is contained in:
Kevin Liu 2016-10-16 16:04:53 -07:00
parent e30bec17f5
commit f2ff166e12

View file

@ -90,7 +90,7 @@ Send files to the graveyard (/tmp/.graveyard) instead of unlinking them.")
};
if let Err(e) = bury(grave, dest) {
println!("ERROR: {}: {}", e, grave);
} else if let Err(e) = write_log(grave, dest, graveyard) {
} else if let Err(e) = write_log(grave, dest, histfile) {
println!("Error adding {} to histfile: {}", grave, e);
} else {
println!("Returned {} to {}", grave, dest.display());