test/src/jdk/nashorn/internal/test/framework/AbstractScriptRunnable.java

Print this page

        

*** 198,207 **** --- 198,209 ---- protected int evaluateScript(final OutputStream out, final OutputStream err, final String[] args) { try { return getEvaluator().run(out, err, args); } catch (final IOException e) { throw new UnsupportedOperationException("I/O error in initializing shell - cannot redirect output to file"); + } catch (Throwable t) { + throw new RuntimeException(Arrays.toString(args), t); } } // arguments to be passed to compile-and-run this script protected List<String> getRuntimeArgs() {