diff --git a/src/console.cpp b/src/console.cpp index 34ec3fbc8..3ebbc8ab0 100644 --- a/src/console.cpp +++ b/src/console.cpp @@ -398,7 +398,7 @@ void EMSESPShell::add_console_commands() { shell.print(F("Available commands are: ")); Command::show(shell, device_type, false); // non-verbose mode } else if (return_code != CommandRet::OK) { - shell.println(F("Bad syntax")); + shell.printfln(F("Bad syntax (error code %d)"), return_code); } }, [&](Shell & shell __attribute__((unused)), const std::vector & arguments) -> std::vector {