diff options
| author | Jeff Carr <[email protected]> | 2025-10-16 09:51:35 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-16 09:51:35 -0500 |
| commit | 0f61a5c9aa790b73662ea629c955f47a23c878f1 (patch) | |
| tree | ae86032da9f78bfd7d2ac2969cb79ce200d9063d /exit.go | |
| parent | 14e6d97aece57a72ab1aea3f147c7a4c7f505a5a (diff) | |
better msgv0.1.43
Diffstat (limited to 'exit.go')
| -rw-r--r-- | exit.go | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -4,6 +4,7 @@ package main import ( + "errors" "fmt" "os" @@ -14,7 +15,7 @@ import ( // exits if not root func checkSuperuser() { if os.Getuid() != 0 { - me.sh.BadExit("you must run as root", nil) + me.sh.BadExit("need sudo", errors.New("this requires sudo acces")) } } |
