summaryrefslogtreecommitdiff
path: root/src/partest
diff options
context:
space:
mode:
Diffstat (limited to 'src/partest')
-rw-r--r--src/partest/scala/tools/partest/nest/Worker.scala13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/partest/scala/tools/partest/nest/Worker.scala b/src/partest/scala/tools/partest/nest/Worker.scala
index 3eafbc7240..ddf71bb702 100644
--- a/src/partest/scala/tools/partest/nest/Worker.scala
+++ b/src/partest/scala/tools/partest/nest/Worker.scala
@@ -179,9 +179,16 @@ class Worker(val fileManager: FileManager) extends Actor {
" -classpath "+outDir+File.pathSeparator+CLASSPATH+
" "+files.mkString(" ")
- val exitCode = runCommand(cmd, output)
- if (exitCode != 0) {
- NestUI.failure("Running \"javac\" failed with exit code: "+exitCode+"\n")
+ try {
+ val exitCode = runCommand(cmd, output)
+ if (exitCode != 0) {
+ NestUI.failure("Running \"javac\" failed with exit code: "+
+ exitCode+"\n"+cmd+"\n")
+ }
+ } catch {
+ case e: Exception =>
+ NestUI.failure("Running \"javac\" failed: "+
+ "\n"+cmd+"\n")
}
}