Skip to content

Commit

Permalink
dfhack-run: prevent duplicate "not a recognized command" error message
Browse files Browse the repository at this point in the history
  • Loading branch information
jjyg committed Jan 27, 2014
1 parent 6ad8d12 commit 7df9957
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions library/dfhack-run.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

0 comments on commit 7df9957

Please sign in to comment.