Commit 3507551a authored by Davor Kapsa's avatar Davor Kapsa Committed by Daniel Martí

os/user: clean error message formatting

Change-Id: I02728c690a377ecdd2a6bc92d1606cbae3e2723a
Reviewed-on: https://go-review.googlesource.com/c/go/+/196677Reviewed-by: default avatarDaniel Martí <mvdan@mvdan.cc>
Run-TryBot: Daniel Martí <mvdan@mvdan.cc>
TryBot-Result: Gobot Gobot <gobot@golang.org>
parent 0d9981bc
...@@ -72,7 +72,7 @@ func current() (*User, error) { ...@@ -72,7 +72,7 @@ func current() (*User, error) {
func listGroups(*User) ([]string, error) { func listGroups(*User) ([]string, error) {
if runtime.GOOS == "android" || runtime.GOOS == "aix" { 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") return nil, errors.New("user: GroupIds requires cgo")
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment