clerezza-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r...@apache.org
Subject svn commit: r1538351 - /clerezza/trunk/scala-scripting/script-engine/src/main/scala/org/apache/clerezza/scala/scripting/ScriptEngineFactory.scala
Date Sun, 03 Nov 2013 12:34:48 GMT
Author: reto
Date: Sun Nov  3 12:34:48 2013
New Revision: 1538351

URL: http://svn.apache.org/r1538351
Log:
CLEREZZA-840: not catching throwables

Modified:
    clerezza/trunk/scala-scripting/script-engine/src/main/scala/org/apache/clerezza/scala/scripting/ScriptEngineFactory.scala

Modified: clerezza/trunk/scala-scripting/script-engine/src/main/scala/org/apache/clerezza/scala/scripting/ScriptEngineFactory.scala
URL: http://svn.apache.org/viewvc/clerezza/trunk/scala-scripting/script-engine/src/main/scala/org/apache/clerezza/scala/scripting/ScriptEngineFactory.scala?rev=1538351&r1=1538350&r2=1538351&view=diff
==============================================================================
--- clerezza/trunk/scala-scripting/script-engine/src/main/scala/org/apache/clerezza/scala/scripting/ScriptEngineFactory.scala
(original)
+++ clerezza/trunk/scala-scripting/script-engine/src/main/scala/org/apache/clerezza/scala/scripting/ScriptEngineFactory.scala
Sun Nov  3 12:34:48 2013
@@ -234,7 +234,7 @@ class ScriptEngineFactory() extends  Jav
 							compilerService.compile(sources)(0)
 						} catch {
 							case e: CompileErrorsException => throw new ScriptException(e.getMessage, "script",
-1);
-							case e => throw e
+							case e: Exception => throw e
 						}
 						val scriptObject = clazz.newInstance()
 



Mime
View raw message