From 6528e469f7e03252c58d2908203bdcc9a6d9ac83 Mon Sep 17 00:00:00 2001 From: Tom Smeding Date: Tue, 18 Sep 2018 12:08:09 +0200 Subject: Print exit code on process read error --- main.cpp | 1 + 1 file changed, 1 insertion(+) 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 ¶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(); } -- cgit v1.2.3-70-g09d2