File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
runner/src/main/java/com/codingame/gameengine/runner Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -331,8 +331,10 @@ private Command readCommand(Agent agent, int round) {
331
331
}
332
332
if (checkOutput (output , nbLinesToRead ) != OutputResult .OK ) {
333
333
throw new RuntimeException (
334
- "Error reading Referee command. Buffer capacity: " + output .length () + " / "
335
- + (round == 0 ? RefereeAgent .REFEREE_MAX_BUFFER_SIZE_EXTRA : RefereeAgent .REFEREE_MAX_BUFFER_SIZE )
334
+ String .format (
335
+ "Error reading Referee %s command. Buffer capacity: %d / %d" ,
336
+ command , output .length (), (round == 0 ? RefereeAgent .REFEREE_MAX_BUFFER_SIZE_EXTRA : RefereeAgent .REFEREE_MAX_BUFFER_SIZE )
337
+ )
336
338
);
337
339
}
338
340
return new Command (InputCommand .valueOf (command ), output );
You can’t perform that action at this time.
0 commit comments