diff options
author | Tom Smeding <tom.smeding@gmail.com> | 2018-09-18 12:08:09 +0200 |
---|---|---|
committer | Tom Smeding <tom.smeding@gmail.com> | 2018-09-18 12:08:09 +0200 |
commit | 6528e469f7e03252c58d2908203bdcc9a6d9ac83 (patch) | |
tree | 3d78a7ed34e1030059fb404ea9e3a3c998ec2a0f | |
parent | 0f143cc3fa9f7138d9ae0d4c13095930df372880 (diff) |
Print exit code on process read error
-rw-r--r-- | main.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -273,6 +273,7 @@ static void playMatch(Player &p1, Player &p2, int index, const Params ¶ms) { if (!oline) { cout << "ERROR reading move from player " << i+1 << " (game " << gameCodeName(p1, p2, index) << ")" << endl; + cout << "(process exit code: " << procs[i].waitPoll() << ")" << endl; throw StopCompetitionError(); } |