dfhack-run: prevent duplicate "not a recognized command" error message

develop
jj 2014-01-27 15:22:39 +01:00
parent 6ad8d128ba
commit 7df9957941
1 changed files with 2 additions and 5 deletions

@ -79,13 +79,10 @@ int main (int argc, char *argv[])
command_result rv = client.run_command(argv[1], args);
if (rv != CR_OK) {
if (rv == CR_NOT_IMPLEMENTED)
out.printerr("%s is not a recognized command.\n", argv[1]);
out.flush();
if (rv != CR_OK)
return 1;
}
out.flush();
return 0;
}