fix errormessage for shell-commands

This commit is contained in:
MichaelDvP
2021-04-24 09:50:05 +02:00
parent c9a30a23ec
commit 661b8791b3

View File

@@ -375,9 +375,11 @@ void EMSESPShell::add_console_commands() {
serializeJsonPretty(doc, shell);
shell.println();
return;
}
shell.print(F("Unknown command. Available commands are: "));
} else if (!ok) {
shell.println(F("Unknown command, value, or id."));
shell.print(F("Available commands are: "));
Command::show(shell, device_type);
}
},
[&](Shell & shell __attribute__((unused)), const std::vector<std::string> & arguments) -> std::vector<std::string> {
if (arguments.size() == 0) {