working_copy: drop "Internal backend error" message from error

I don't think the message adds anything over what the `BackendError`
itself provides, so let's use `transparent` instead.

I also dropped the `Internal` prefix from the variant because that
also didn't seem to add anything.
This commit is contained in:
Martin von Zweigbergk 2024-06-15 05:40:26 -07:00 committed by Martin von Zweigbergk
parent 8aa71f58f3
commit ca1f19736c

View file

@ -150,8 +150,8 @@ pub enum SnapshotError {
path: PathBuf,
},
/// Reading or writing from the commit backend failed.
#[error("Internal backend error")]
InternalBackendError(#[from] BackendError),
#[error(transparent)]
BackendError(#[from] BackendError),
/// A file was larger than the specified maximum file size for new
/// (previously untracked) files.
#[error("New file {path} of size ~{size} exceeds snapshot.max-new-file-size ({max_size})")]