Skip to content

Commit

Permalink
error_updated
Browse files Browse the repository at this point in the history
  • Loading branch information
yashbudhia committed Oct 6, 2024
1 parent 66bea7e commit 97a84d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ var blocklistedCommands = map[string]bool{
// BlockListedCommand checks if a command is blocklisted
func BlockListedCommand(cmd string) error {
if _, exists := blocklistedCommands[strings.ToUpper(cmd)]; exists {
return errors.New("command is blocklisted")
return errors.New("ERR unknown command '" + cmd + "'")
}
return nil
}
Expand Down

0 comments on commit 97a84d9

Please sign in to comment.