add more info to schematic errors
This commit is contained in:
@@ -133,6 +133,7 @@ public class Schematics implements Loadable{
|
||||
try{
|
||||
write(newSchematic, target.file);
|
||||
}catch(Exception e){
|
||||
Log.err("Failed to overwrite schematic '@' (@)", newSchematic.name, target.file);
|
||||
Log.err(e);
|
||||
ui.showException(e);
|
||||
}
|
||||
@@ -153,6 +154,7 @@ public class Schematics implements Loadable{
|
||||
|
||||
return s;
|
||||
}catch(Throwable e){
|
||||
Log.err("Failed to read schematic from file '@'", file);
|
||||
Log.err(e);
|
||||
}
|
||||
return null;
|
||||
@@ -188,6 +190,7 @@ public class Schematics implements Loadable{
|
||||
try{
|
||||
return getBuffer(schematic).getTexture();
|
||||
}catch(Throwable t){
|
||||
Log.err("Failed to get preview for schematic '@' (@)", schematic.name, schematic.file);
|
||||
Log.err(t);
|
||||
errored.add(schematic);
|
||||
return errorTexture;
|
||||
|
||||
Reference in New Issue
Block a user