Skip to content

Commit 339fdef

Browse files
codex128scenemax3d
authored andcommitted
Logs exception as severe on asset locator instantiation failure (#2232)
switched to severe logging
1 parent 3a1aa08 commit 339fdef

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

jme3-core/src/main/java/com/jme3/asset/ImplHandler.java

+1-4
Original file line numberDiff line numberDiff line change
@@ -124,10 +124,7 @@ protected T initialValue() {
124124
} catch (InstantiationException | IllegalAccessException
125125
| IllegalArgumentException | InvocationTargetException
126126
| NoSuchMethodException | SecurityException ex) {
127-
logger.log(Level.SEVERE, "Cannot create locator of type {0}, does"
128-
+ " the class have an empty and publicly accessible"
129-
+ " constructor?", type.getName());
130-
logger.throwing(type.getName(), "<init>", ex);
127+
logger.log(Level.SEVERE, "An exception occurred while instantiating asset locator: " + type.getName(), ex);
131128
}
132129
return null;
133130
}

0 commit comments

Comments
 (0)