Merge pull request #432 from MeFisto94/AssetPath

Be more verbose when the Asset Path is outside of the root.
experimental
Kirill Vainer 9 years ago
commit f4098ce89c
  1. 2
      jme3-core/src/main/java/com/jme3/asset/AssetKey.java

@ -156,7 +156,7 @@ public class AssetKey<T> implements Savable, Cloneable {
list.removeLast();
} else {
list.add("..");
Logger.getLogger(AssetKey.class.getName()).log(Level.SEVERE, "Asset path is outside assetmanager root");
Logger.getLogger(AssetKey.class.getName()).log(Level.SEVERE, "Asset path \"{0}\" is outside assetmanager root", path);
}
} else {
list.add(string);

Loading…
Cancel
Save