diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-02-18 17:36:58 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-02-18 17:39:53 +0900 |
| commit | 2c9c7fee5b42d8f32be9ff55ad92345ae62c0af7 (patch) | |
| tree | 90209f024a847576033e5fdda340fa6d3b662d74 /main.go | |
| parent | d0400f3c81ce6d1976d9e4e527b1d342f4bc270d (diff) | |
linux: wrap fsu lookup error
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -228,7 +228,8 @@ func main() { passwdFunc = func() { var us string if uid, err := sys.Uid(aid); err != nil { - log.Fatalf("cannot obtain uid from fsu: %v", err) + fmsg.PrintBaseError(err, "cannot obtain uid from fsu:") + os.Exit(1) } else { us = strconv.Itoa(uid) } |
