Skip to content

Commit 89bc54b

Browse files
author
Miloslav Metelka
committed
Error message fix.
1 parent bd11c78 commit 89bc54b

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

com.oracle.truffle.r.runtime/src/com/oracle/truffle/r/runtime/RInternalError.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,8 @@ private static void reportError(String errMsg, Throwable throwable, int contextI
205205
} catch (IOException e) {
206206
e.printStackTrace();
207207
}
208+
} else {
209+
message += ". Cannot write error log file (tried current working directory, user home directory, FastR home directory).";
208210
}
209211
System.err.println(message);
210212
if (RContext.isEmbedded()) {

com.oracle.truffle.r.runtime/src/com/oracle/truffle/r/runtime/ffi/RFFILog.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ private static void initTraceStream() {
9999
System.exit(1);
100100
}
101101
} else {
102-
System.err.println("Cannot produce trace log file at any of the standard locations. Please check directory permissions.");
102+
System.err.println("Cannot write trace log file (tried current working directory, user home directory, FastR home directory).");
103103
System.exit(1);
104104
}
105105
}

0 commit comments

Comments
 (0)