Skip to content

Commit 64256fe

Browse files
committed
fix: enhance error assertion message in test for TTY availability
1 parent 3d8a94d commit 64256fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sr/pam/rpassword.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ mod test {
245245
}
246246
Err(e) => {
247247
// TTY is not available, which is expected in some test environments
248-
assert!(e.kind() == io::ErrorKind::NotFound || e.kind() == io::ErrorKind::PermissionDenied);
248+
assert!(e.kind() == io::ErrorKind::NotFound || e.kind() == io::ErrorKind::PermissionDenied, "Unexpected error kind: {:?}", e.kind());
249249
}
250250
}
251251
}

0 commit comments

Comments
 (0)