From 0f61a5c9aa790b73662ea629c955f47a23c878f1 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Thu, 16 Oct 2025 09:51:35 -0500 Subject: better msg --- exit.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'exit.go') diff --git a/exit.go b/exit.go index 7e1a9b0..c60766c 100644 --- a/exit.go +++ b/exit.go @@ -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")) } } -- cgit v1.2.3