diff --git a/internal/shell/shell.go b/internal/shell/shell.go index 097af74d0172264efbe899711ff57137abc6ee30..b655c5dbecf5b69c7ad102c53108733515138771 100644 --- a/internal/shell/shell.go +++ b/internal/shell/shell.go @@ -261,7 +261,7 @@ func (s *Shell) blockHandler() func(next interp.ExecHandlerFunc) interp.ExecHand for _, blockFunc := range s.blockFuncs { if blockFunc(args) { - return fmt.Errorf("command '%s' is not allowed for security reasons", strings.Join(args, " ")) + return fmt.Errorf("command is not allowed for security reasons: %s", strings.Join(args, " ")) } }