mirror of
https://github.com/martinvonz/jj.git
synced 2024-12-28 07:20:11 +00:00
working_copy: propagate errors when reading conflicted file
This commit is contained in:
parent
33a93b6d2d
commit
23f54b8151
1 changed files with 5 additions and 1 deletions
|
@ -973,7 +973,11 @@ impl TreeState {
|
|||
err,
|
||||
})?;
|
||||
let mut content = vec![];
|
||||
file.read_to_end(&mut content).unwrap();
|
||||
file.read_to_end(&mut content)
|
||||
.map_err(|err| SnapshotError::IoError {
|
||||
message: format!("Failed to read file {}", disk_path.display()),
|
||||
err,
|
||||
})?;
|
||||
let new_file_ids = conflicts::update_from_content(
|
||||
&old_file_ids,
|
||||
self.store.as_ref(),
|
||||
|
|
Loading…
Reference in a new issue