NAT use reportError for bad command name

This commit is contained in:
2021-09-16 22:22:35 -06:00
parent cfaa498d0e
commit 6d8c69e4a8

View File

@@ -99,7 +99,7 @@
(let [lowerCommandName (commandName.toLowerCase)]
(if (commands.exists lowerCommandName)
(_runCommand (dictGet commands lowerCommandName))
(ui.displayMessage "$commandName is not a valid command"))))
(ui.reportError "$commandName is not a valid command"))))
(method :Void _runCommand [:Command command]
(let [collectedArgs