Skip to content

Commit

Permalink
WIP Trying to diagnose 'invalid group: 1001:121' error in CI environment
Browse files Browse the repository at this point in the history
  • Loading branch information
jfinkels committed May 10, 2022
1 parent c5d41d6 commit 291fb3a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/uu/chown/src/chown.rs
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,8 @@ fn parse_spec(spec: &str, sep: char) -> UResult<(Option<u32>, Option<u32>)> {
Ok(g) => g.gid,
Err(_) => match group.parse() {
Ok(gid) => gid,
Err(_) => {
Err(e) => {
eprintln!("error {}, user {}, group {}, uid {:?}", e, user, group, uid);
return Err(USimpleError::new(
1,
format!("invalid group: {}", spec.quote()),
Expand Down

0 comments on commit 291fb3a

Please sign in to comment.