@@ -137,11 +137,11 @@ public boolean equals(Object o) {
137137 return loader .equals (other .loader ) && mode .equals (other .getMode ());
138138 }
139139
140- public String initLoader (Base base , String className ) throws Exception {
141140
141+ public String initLoader (Base base , String className ) throws Exception {
142142 File modeDirectory = new File (folder , getTypeName ());
143143 if (modeDirectory .exists ()) {
144- Messages .log ("checking mode folder regarding " + className );
144+ Messages .log ("checking mode folder regarding class name " + className );
145145 // If no class name specified, search the main <modename>.jar for the
146146 // full name package and mode name.
147147 if (className == null ) {
@@ -170,7 +170,7 @@ public String initLoader(Base base, String className) throws Exception {
170170 installedModes .put (m .getClass ().getName (), m );
171171 }
172172
173- for (String modeImport : imports ){
173+ for (String modeImport : imports ) {
174174 if (installedModes .containsKey (modeImport )) {
175175 Messages .log ("Found mode dependency " + modeImport );
176176 File modeFolder = installedModes .get (modeImport ).getFolder ();
@@ -182,8 +182,9 @@ public String initLoader(Base base, String className) throws Exception {
182182 }
183183 }
184184 } else {
185- throw new IgnorableException ("Dependency mode " + modeImport + " could not be"
186- + " found. Can't load " + className );
185+ throw new IgnorableException ("Can't load " + className +
186+ " because the import " + modeImport +
187+ " could not be found. " );
187188 }
188189 }
189190 }
0 commit comments