diff options
author | Riccardo Spagni <ric@spagni.net> | 2018-01-25 16:34:45 -0800 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2018-01-25 16:34:45 -0800 |
commit | 92826e3d8b6b4aed5db67ec28f2d7821a6cf201d (patch) | |
tree | 1bd82ce226d4cd2e0e15af575a515387b99e5e90 | |
parent | Merge pull request #3010 (diff) | |
parent | daemon+simplewallet: given an unknown command, show it (diff) | |
download | monero-92826e3d8b6b4aed5db67ec28f2d7821a6cf201d.tar.xz |
Merge pull request #3011
619bb723 daemon+simplewallet: given an unknown command, show it (stoffu)
-rw-r--r-- | src/daemon/main.cpp | 2 | ||||
-rw-r--r-- | src/simplewallet/simplewallet.cpp | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/daemon/main.cpp b/src/daemon/main.cpp index 6ac47fcb2..a47e74c71 100644 --- a/src/daemon/main.cpp +++ b/src/daemon/main.cpp @@ -269,7 +269,7 @@ int main(int argc, char const * argv[]) } else { - std::cerr << "Unknown command" << std::endl; + std::cerr << "Unknown command: " << command.front() << std::endl; return 1; } } diff --git a/src/simplewallet/simplewallet.cpp b/src/simplewallet/simplewallet.cpp index cca2b3970..ef4841523 100644 --- a/src/simplewallet/simplewallet.cpp +++ b/src/simplewallet/simplewallet.cpp @@ -6624,7 +6624,8 @@ int main(int argc, char* argv[]) std::vector<std::string> command = command_line::get_arg(*vm, arg_command); if (!command.empty()) { - w.process_command(command); + if (!w.process_command(command)) + fail_msg_writer() << tr("Unknown command: ") << command.front(); w.stop(); w.deinit(); } |