Skip to content

Commit e055a42

Browse files
authored
path changed to dirPath to match argument name
This was throwing an error when an invalid path was supplied. The throw message was then throwing an error indicating that variables.path was not defined.
1 parent f433cf1 commit e055a42

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/cbjavaloader/models/Loader.cfc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ component accessors="true" singleton{
133133
*/
134134
array function arrayOfJars( required string dirPath, string filter="*.jar" ){
135135
if( not directoryExists( arguments.dirPath ) ){
136-
throw( message="Invalid library path", detail="The path is #path#", type="JavaLoader.DirectoryNotFoundException" );
136+
throw( message="Invalid library path", detail="The path is #dirPath#", type="JavaLoader.DirectoryNotFoundException" );
137137
}
138138

139139
return directoryList( arguments.dirPath, true, "array", arguments.filter, "name desc" );
@@ -154,4 +154,4 @@ component accessors="true" singleton{
154154
return structKeyExists( server, getstaticIDKey());
155155
}
156156

157-
}
157+
}

0 commit comments

Comments
 (0)