Skip to content
Permalink
Browse files
os/user: clean error message formatting
Change-Id: I02728c690a377ecdd2a6bc92d1606cbae3e2723a
Reviewed-on: https://go-review.googlesource.com/c/go/+/196677
Reviewed-by: Daniel Martí <mvdan@mvdan.cc>
Run-TryBot: Daniel Martí <mvdan@mvdan.cc>
TryBot-Result: Gobot Gobot <gobot@golang.org>
  • Loading branch information
dvrkps authored and mvdan committed Sep 20, 2019
1 parent 0d9981b commit 3507551a1f0d34d567d77242b68bf19b00caf9b7
Showing 1 changed file with 1 addition and 1 deletion.
@@ -72,7 +72,7 @@ func current() (*User, error) {

func listGroups(*User) ([]string, error) {
if runtime.GOOS == "android" || runtime.GOOS == "aix" {
return nil, errors.New(fmt.Sprintf("user: GroupIds not implemented on %s", runtime.GOOS))
return nil, fmt.Errorf("user: GroupIds not implemented on %s", runtime.GOOS)
}
return nil, errors.New("user: GroupIds requires cgo")
}

0 comments on commit 3507551

Please sign in to comment.