Mercurial > hg > truffle
changeset 18979:bdb24e259c11
include original exception in FileSource.getReader
author | Lukas Stadler <lukas.stadler@oracle.com> |
---|---|
date | Tue, 27 Jan 2015 23:12:58 +0100 |
parents | 9110e3065561 |
children | ae0eb836e6f4 |
files | graal/com.oracle.truffle.api/src/com/oracle/truffle/api/source/Source.java |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/graal/com.oracle.truffle.api/src/com/oracle/truffle/api/source/Source.java Tue Jan 27 23:12:51 2015 +0100 +++ b/graal/com.oracle.truffle.api/src/com/oracle/truffle/api/source/Source.java Tue Jan 27 23:12:58 2015 +0100 @@ -594,7 +594,8 @@ try { return new FileReader(file); } catch (FileNotFoundException e) { - throw new RuntimeException("Can't find file " + path); + + throw new RuntimeException("Can't find file " + path, e); } }