Skip to content

Commit 06e6d41

Browse files
committed
fix: stray print statement and no cause for coverage file output
Signed-off-by: Sam Gammon <[email protected]>
1 parent 0bb4c35 commit 06e6d41

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tools/src/com.oracle.truffle.tools.coverage/src/com/oracle/truffle/tools/coverage/impl/CoverageInstrument.java

+5-1
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,6 @@ protected static PrintStream chooseOutputStream(Env env, String absoluteOutputPa
136136
try {
137137
if (absoluteOutputPath != null) {
138138
final File file = new File(absoluteOutputPath);
139-
new PrintStream(env.out()).println("Printing output to " + file.getAbsolutePath());
140139
return new PrintStream(new FileOutputStream(file));
141140
} else {
142141
return new PrintStream(env.out());
@@ -145,6 +144,11 @@ protected static PrintStream chooseOutputStream(Env env, String absoluteOutputPa
145144
throw new AbstractTruffleException() {
146145
static final long serialVersionUID = -1;
147146

147+
@Override
148+
public Throwable getCause() {
149+
return e;
150+
}
151+
148152
@Override
149153
public String getMessage() {
150154
return "File IO Exception caught during output printing.";

0 commit comments

Comments
 (0)