Added additional information to Script exceptions

This commit is contained in:
Obique PSWG
2015-08-18 18:41:58 -05:00
parent 6a4b032db1
commit 85bbef22dd
+3
View File
@@ -29,6 +29,7 @@ package utilities;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.util.Arrays;
import javax.script.Invocable;
import javax.script.ScriptEngine;
@@ -76,6 +77,8 @@ public class Scripts {
// Returning null is all that's necessary
return null;
} catch (Throwable t) {
System.err.println("Error invoking script: " + script + " with function: " + function);
System.err.println(" Args: " + Arrays.toString(args));
t.printStackTrace();
return null;
}