[all (rust)] Fix errors in testing input option

- Fix file mode bits checking
- Return error reason from stat
This commit is contained in:
Ming-Hung Tsai
2021-09-07 00:01:37 +08:00
parent 4ed2348b36
commit 2f22a8c55d
13 changed files with 85 additions and 53 deletions

View File

@@ -62,7 +62,7 @@ pub mod cpp_msg {
}
pub mod rust_msg {
pub const FILE_NOT_FOUND: &str = "Couldn't find input file";
pub const FILE_NOT_FOUND: &str = "No such file or directory";
pub const MISSING_INPUT_ARG: &str = "The following required arguments were not provided"; // TODO: be specific
pub const MISSING_OUTPUT_ARG: &str = "The following required arguments were not provided"; // TODO: be specific
pub const BAD_SUPERBLOCK: &str = "bad checksum in superblock";