forked from tangled.org/core
this repo has no description

guard: avoid duplicating error logs

Signed-off-by: oppiliappan <me@oppi.li>

authored by oppi.li and committed by Tangled c4e83c26 e866ac15

Changed files
+1 -1
guard
+1 -1
guard/guard.go
··· 87 87 if sshCommand == "" { 88 88 l.Error("access denied: no interactive shells", "user", incomingUser) 89 89 fmt.Fprintln(os.Stderr, "access denied: we don't serve interactive shells :)") 90 - return fmt.Errorf("access denied: no interactive shells") 90 + os.Exit(-1) 91 91 } 92 92 93 93 cmdParts := strings.Fields(sshCommand)