mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 00:09:51 +03:00
fix errormessage for shell-commands
This commit is contained in:
@@ -375,9 +375,11 @@ void EMSESPShell::add_console_commands() {
|
|||||||
serializeJsonPretty(doc, shell);
|
serializeJsonPretty(doc, shell);
|
||||||
shell.println();
|
shell.println();
|
||||||
return;
|
return;
|
||||||
|
} else if (!ok) {
|
||||||
|
shell.println(F("Unknown command, value, or id."));
|
||||||
|
shell.print(F("Available commands are: "));
|
||||||
|
Command::show(shell, device_type);
|
||||||
}
|
}
|
||||||
shell.print(F("Unknown command. Available commands are: "));
|
|
||||||
Command::show(shell, device_type);
|
|
||||||
},
|
},
|
||||||
[&](Shell & shell __attribute__((unused)), const std::vector<std::string> & arguments) -> std::vector<std::string> {
|
[&](Shell & shell __attribute__((unused)), const std::vector<std::string> & arguments) -> std::vector<std::string> {
|
||||||
if (arguments.size() == 0) {
|
if (arguments.size() == 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user