Skip to content

Commit 978c81e

Browse files
logresearchentlicher
authored andcommitted
Fix logging statement sequence
1 parent 2b84085 commit 978c81e

File tree

1 file changed

+3
-3
lines changed
  • truffle/src/com.oracle.truffle.tck.instrumentation/src/com/oracle/truffle/tck/instrumentation

1 file changed

+3
-3
lines changed

truffle/src/com.oracle.truffle.tck.instrumentation/src/com/oracle/truffle/tck/instrumentation/DebugALot.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,12 +124,12 @@ protected void onCreate(Env env) {
124124

125125
@Override
126126
protected void onFinalize(Env env) {
127-
logger.print("Executed successfully: ");
128-
logger.print(Boolean.toString(!hasFailed).toUpperCase());
129-
logger.flush();
130127
if (error != null) {
131128
throw new AssertionError("Failure", error);
132129
}
130+
logger.print("Executed successfully: ");
131+
logger.print(Boolean.toString(!hasFailed).toUpperCase());
132+
logger.flush();
133133
}
134134

135135
@Override

0 commit comments

Comments
 (0)