mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-03-09 20:29:06 +07:00
Merge pull request #3335 from DeltaNedas/error
add more info to schematic errors
This commit is contained in:
commit
d10960817d
@ -133,6 +133,7 @@ public class Schematics implements Loadable{
|
|||||||
try{
|
try{
|
||||||
write(newSchematic, target.file);
|
write(newSchematic, target.file);
|
||||||
}catch(Exception e){
|
}catch(Exception e){
|
||||||
|
Log.err("Failed to overwrite schematic '@' (@)", newSchematic.name(), target.file);
|
||||||
Log.err(e);
|
Log.err(e);
|
||||||
ui.showException(e);
|
ui.showException(e);
|
||||||
}
|
}
|
||||||
@ -153,6 +154,7 @@ public class Schematics implements Loadable{
|
|||||||
|
|
||||||
return s;
|
return s;
|
||||||
}catch(Throwable e){
|
}catch(Throwable e){
|
||||||
|
Log.err("Failed to read schematic from file '@'", file);
|
||||||
Log.err(e);
|
Log.err(e);
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
@ -188,6 +190,7 @@ public class Schematics implements Loadable{
|
|||||||
try{
|
try{
|
||||||
return getBuffer(schematic).getTexture();
|
return getBuffer(schematic).getTexture();
|
||||||
}catch(Throwable t){
|
}catch(Throwable t){
|
||||||
|
Log.err("Failed to get preview for schematic '@' (@)", schematic.name(), schematic.file);
|
||||||
Log.err(t);
|
Log.err(t);
|
||||||
errored.add(schematic);
|
errored.add(schematic);
|
||||||
return errorTexture;
|
return errorTexture;
|
||||||
|
Loading…
Reference in New Issue
Block a user