This is an automated email from the ASF dual-hosted git repository.

paulk pushed a commit to branch GROOVY_4_0_X
in repository https://gitbox.apache.org/repos/asf/groovy.git

commit 0b5e00ed45aee6169718b2e55af2d72f2514de95
Author: aalku <aal...@gmail.com>
AuthorDate: Fri Jun 10 14:22:28 2022 +0200

    Fix missleading error message in GroovyScriptEngine
    
    The error message is missleading and needs a fix. Otherwise it can show 
"Cannot open URL: folderfile" instead of "folder/file" and the user might 
wonder why is it looking for "folderfile".
---
 src/main/java/groovy/util/GroovyScriptEngine.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/java/groovy/util/GroovyScriptEngine.java 
b/src/main/java/groovy/util/GroovyScriptEngine.java
index 1a4c367ba4..d5a10838e4 100644
--- a/src/main/java/groovy/util/GroovyScriptEngine.java
+++ b/src/main/java/groovy/util/GroovyScriptEngine.java
@@ -383,7 +383,7 @@ public class GroovyScriptEngine implements 
ResourceConnector {
                     se = new ResourceException(message, se);
                 }
             } catch (IOException e1) {
-                String message = "Cannot open URL: " + root + resourceName;
+                String message = "Cannot open URL: " + root + ", " + 
resourceName;
                 groovyScriptConn = null;
                 if (se == null) {
                     se = new ResourceException(message);

Reply via email to