Skip to content

Commit 00ee39c

Browse files
committed
formatting
1 parent 3162f63 commit 00ee39c

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

src/lib/src/util/hasher.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,8 @@ fn hash_small_file_contents(path: &Path) -> Result<String, OxenError> {
107107
Ok(result)
108108
}
109109
Err(_) => {
110-
eprintln!("Could not read file to end {path:?}");
111-
Err(OxenError::basic_str("Could not read file to end"))
110+
eprintln!("Could not read file for hashing {path:?}");
111+
Err(OxenError::basic_str("Could not read file for hashing"))
112112
}
113113
}
114114
}
@@ -132,8 +132,8 @@ fn hash_large_file_contents(path: &Path) -> Result<String, OxenError> {
132132

133133
loop {
134134
let count = reader.read(&mut buffer).map_err(|_| {
135-
eprintln!("Could not read file to end {:?}", path);
136-
OxenError::basic_str("Could not read file to end")
135+
eprintln!("Could not read file for hashing {:?}", path);
136+
OxenError::basic_str("Could not read file for hashing")
137137
})?;
138138

139139
if count == 0 {

src/server/src/controllers/commits.rs

-1
Original file line numberDiff line numberDiff line change
@@ -1215,7 +1215,6 @@ fn unpack_entry_tarball(hidden_dir: &Path, archive: &mut Archive<GzDecoder<&[u8]
12151215
let hash_dir = version_path.parent().unwrap();
12161216
let hash_file = hash_dir.join(HASH_FILE);
12171217
let hash = util::hasher::hash_file_contents(&version_path).unwrap();
1218-
12191218
util::fs::write_to_path(&hash_file, &hash)
12201219
.expect("Could not write hash file");
12211220
} else if path.starts_with(OBJECTS_DIR) {

0 commit comments

Comments
 (0)