Skip to content

Commit eb15799

Browse files
author
Julien Poulton
committed
Merge branch 'master' into '5841-sdk-a-text-cant-have-a-semi-colon-in-it'
# Conflicts: # playground/misc/misc-3-release-notes.md
2 parents fb38f2c + 47fd016 commit eb15799

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

engine/core/src/main/java/com/codingame/gameengine/core/GameManager.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ void start(InputStream is, PrintStream out) {
152152

153153
s.close();
154154

155-
} catch (RuntimeException e) {
155+
} catch (Throwable e) {
156156
dumpFail(e);
157157
s.close();
158158
throw e;
@@ -209,7 +209,7 @@ protected void execute(T player, int nbrOutputLines) {
209209

210210
player.resetInputs();
211211
newTurn = false;
212-
} catch (RuntimeException e) {
212+
} catch (Throwable e) {
213213
//Don't let the user catch game fail exceptions
214214
dumpFail(e);
215215
throw e;
@@ -262,7 +262,7 @@ private void dumpScores() {
262262
out.println(data);
263263
}
264264

265-
private void dumpFail(RuntimeException e) {
265+
private void dumpFail(Throwable e) {
266266
OutputData data = new OutputData(OutputCommand.FAIL);
267267
StringWriter sw = new StringWriter();
268268
PrintWriter pw = new PrintWriter(sw);

playground/misc/misc-3-release-notes.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ The CodinGame SDK is regularly updated and improved. This document lets you know
77
### 🐞 Bug fix
88

99
- A Text can now have semicolons in it
10+
- Improved error handling
1011

1112
## 3.4.7
1213

0 commit comments

Comments
 (0)