Skip to content

Commit

Permalink
More explicit error message when db dir is not writable
Browse files Browse the repository at this point in the history
  • Loading branch information
abailly-iohk committed Jan 31, 2024
1 parent 537ef89 commit 2699231
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mithril-client-cli/src/utils/unpacker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ pub enum SnapshotUnpackerError {
UnpackDirectoryAlreadyExists(PathBuf),

/// Cannot write in the given directory.
#[error("Unpack directory '{0}' is not writable.")]
#[error("Unpack directory '{0}' is not writable, please check own or parents' permissions and ownership.")]
UnpackDirectoryIsNotWritable(PathBuf, #[source] StdError),
}

Expand Down Expand Up @@ -114,7 +114,7 @@ mod test {
);
}

// This test is not runned on Windows because `set_readonly` is not working on Windows 7+
// This test is not run on Windows because `set_readonly` is not working on Windows 7+
// https://doc.rust-lang.org/std/fs/struct.Permissions.html#method.set_readonly
#[cfg(not(target_os = "windows"))]
#[test]
Expand Down

0 comments on commit 2699231

Please sign in to comment.