aboutsummaryrefslogtreecommitdiff
path: root/src/simplewallet
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2018-01-25 16:34:45 -0800
committerRiccardo Spagni <ric@spagni.net>2018-01-25 16:34:45 -0800
commit92826e3d8b6b4aed5db67ec28f2d7821a6cf201d (patch)
tree1bd82ce226d4cd2e0e15af575a515387b99e5e90 /src/simplewallet
parentMerge pull request #3010 (diff)
parentdaemon+simplewallet: given an unknown command, show it (diff)
downloadmonero-92826e3d8b6b4aed5db67ec28f2d7821a6cf201d.tar.xz
Merge pull request #3011
619bb723 daemon+simplewallet: given an unknown command, show it (stoffu)
Diffstat (limited to 'src/simplewallet')
-rw-r--r--src/simplewallet/simplewallet.cpp3
1 files changed, 2 insertions, 1 deletions
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();
}