diff --git a/src/main/groovy/util/GroovyScriptEngine.java b/src/main/groovy/util/GroovyScriptEngine.java
index <HASH>..<HASH> 100644
--- a/src/main/groovy/util/GroovyScriptEngine.java
+++ b/src/main/groovy/util/GroovyScriptEngine.java
@@ -312,7 +312,7 @@ public class GroovyScriptEngine implements ResourceConnector {
                 }
             } catch (IOException e1) {
                 groovyScriptConn = null;
-                String message = "Cannot open URL: " + scriptURL;
+                String message = "Cannot open URL: " + root + resourceName;
                 groovyScriptConn = null;
                 if (se == null) {
                     se = new ResourceException(message);
GROOVY-<I>: improve exception text by not using the resulting URL, but root+resourceName