Skip to content

Commit 85f443f

Browse files
committed
refactor(sudo): add comand to error message
1 parent 0680a7d commit 85f443f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/app/app.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ func (i *Installer) CheckSudoAccess() error {
3838
cmd := exec.Command("sudo", "-n", "true")
3939
cmd.Stderr = os.Stderr
4040
if err := cmd.Run(); err != nil {
41-
return fmt.Errorf("this installer requires sudo privileges. Please ensure you have sudo access and try again")
41+
return fmt.Errorf("this installer requires sudo privileges. Please ensure you have sudo access and try again. You can run `sudo usermod -aG sudo <user>` to add your user to the sudoers group")
4242
}
4343
return nil
4444
}

0 commit comments

Comments
 (0)