Skip to content

Commit

Permalink
conflicts: remove redundant information from ReadFile error
Browse files Browse the repository at this point in the history
The ReadFile error message already says "when reading file content for file
{path}..".
  • Loading branch information
yuja committed Jun 17, 2024
1 parent f8a5ad0 commit 2de73f5
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/src/conflicts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,7 @@ async fn get_file_contents(
.map_err(|err| BackendError::ReadFile {
path: path.to_owned(),
id: id.clone(),
source: format!(
"Failed to read file contents for {}: {err}",
path.as_internal_file_string()
)
.into(),
source: err.into(),
})?;
Ok(ContentHunk(content))
}
Expand Down

0 comments on commit 2de73f5

Please sign in to comment.