Unverified Commit 92c20fda authored by Patrick Devine's avatar Patrick Devine Committed by GitHub
Browse files

fix error messages for unknown commands in the repl (#611)

parent c951da70
......@@ -635,6 +635,8 @@ func generateInteractive(cmd *cobra.Command, model string) error {
} else {
usage()
}
default:
fmt.Printf("Unknown command '/set %s'. Type /? for help\n", args[1])
}
} else {
usage()
......@@ -659,7 +661,7 @@ func generateInteractive(cmd *cobra.Command, model string) error {
case "template":
fmt.Println(resp.Template)
default:
fmt.Println("error: unknown command")
fmt.Printf("Unknown command '/show %s'. Type /? for help\n", args[1])
}
} else {
usage()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment