Skip to content

Commit d9c66c0

Browse files
committed
Updated error message
1 parent e6c867a commit d9c66c0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

kubebot.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const (
2222
forbiddenFlagMessage string = "%s - ⚠ Flag(s) %s forbidden for user @%s\n"
2323
forbiddenUserResponse string = "Sorry @%s, but you don't have permission to run this command :confused:"
2424
forbiddenChannelResponse string = "Sorry @%s, but I'm not allowed to run this command here :zipper_mouth_face:"
25-
forbiddenCommandResponse string = "Sorry @%s, but I cannot run this command. I'm allowed to run `%s`"
25+
forbiddenCommandResponse string = "Sorry @%s, but I cannot run this command."
2626
forbiddenFlagResponse string = "Sorry @%s, but I'm not allowed to run one of your flags."
2727
okResponse string = "Roger that!\n@%s, this is the response to your request:\n ```\n%s\n``` "
2828
)
@@ -149,7 +149,7 @@ func kubectl(command *bot.Cmd) (msg string, err error) {
149149

150150
if len(command.Args) > 0 && !kb.commands[command.Args[0]] {
151151
fmt.Printf(forbiddenCommandMessage, time, command.Args, nickname)
152-
return fmt.Sprintf(forbiddenCommandResponse, nickname, kb.commands), nil
152+
return fmt.Sprintf(forbiddenCommandResponse, nickname), nil
153153
}
154154

155155
if err := validateFlags(command.Args...); err != nil {

0 commit comments

Comments
 (0)