Adjust order of operations

This commit is contained in:
Akkadius
2019-12-24 23:57:36 -06:00
parent 80d8736276
commit 995fb6914e
2 changed files with 6 additions and 5 deletions
+5 -4
View File
@@ -182,12 +182,13 @@ namespace EQEmuCommand {
}
std::cout << std::endl;
}
else if (!ran_command) {
std::cerr << "Unknown command [" << argv[1] << "] ! Try --help" << std::endl;
std::exit(1);
}
exit(1);
if (ran_command) {
std::exit(1);
}
}
}