From 2cac64f91b2169ba7f9cf36b89db0766e4b12e77 Mon Sep 17 00:00:00 2001 From: Dustin Pianalto Date: Tue, 2 Jun 2020 13:34:13 -0800 Subject: [PATCH] Add log on shellquote error --- command-manager.go | 1 + 1 file changed, 1 insertion(+) diff --git a/command-manager.go b/command-manager.go index 912b2de..260b808 100644 --- a/command-manager.go +++ b/command-manager.go @@ -94,6 +94,7 @@ func (c *CommandManager) OnMessage(session *discordgo.Session, m *discordgo.Mess // If we found our prefix then remove it and split the command into pieces cmd, err = shellquote.Split(strings.TrimPrefix(content, prefix)) if err != nil { + fmt.Println(err.Error()) if err.Error() == "Unterminated double-quoted string" || err.Error() == "Unterminated single-quoted string" { cmd = strings.Split(strings.TrimPrefix(content, prefix), " ") } else {