summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Smeding <tom.smeding@gmail.com>2018-09-18 12:08:09 +0200
committerTom Smeding <tom.smeding@gmail.com>2018-09-18 12:08:09 +0200
commit6528e469f7e03252c58d2908203bdcc9a6d9ac83 (patch)
tree3d78a7ed34e1030059fb404ea9e3a3c998ec2a0f
parent0f143cc3fa9f7138d9ae0d4c13095930df372880 (diff)
Print exit code on process read error
-rw-r--r--main.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/main.cpp b/main.cpp
index edcafb1..2d3f828 100644
--- a/main.cpp
+++ b/main.cpp
@@ -273,6 +273,7 @@ static void playMatch(Player &p1, Player &p2, int index, const Params &params) {
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();
}