Skip to content

Commit 4348454

Browse files
KSXGitHubCopilot
authored andcommitted
docs: improve error message
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 858afc6 commit 4348454

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/cli_errors.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,8 @@ fn fs_errors() {
112112
if unsafe { libc::geteuid() } == 0 {
113113
panic!(
114114
"{}\n{}",
115-
"error: Attempt to run this test on root environment was detected. Such an environment would affect the accuracy of this test.",
116-
"hint: Either run this test on non-root environment or set `RUSTFLAGS='--cfg pdu_test_skip_fs_errors'` to skip this error.",
115+
"error: This test must not be run as root because running with elevated privileges would affect its accuracy.",
116+
"hint: Either run this test as a non-root user or set `RUSTFLAGS='--cfg pdu_test_skip_fs_errors'` to skip this test.",
117117
);
118118
}
119119

0 commit comments

Comments
 (0)