Improved logs on CC attach exception report
This commit is contained in:
parent
96ec8dc548
commit
a5ab5ac887
1 changed files with 4 additions and 1 deletions
|
@ -332,7 +332,10 @@ public abstract class TileEntityAbstractInterfaced extends TileEntityAbstractBas
|
|||
}
|
||||
} catch (Exception exception) {
|
||||
exception.printStackTrace();
|
||||
WarpDrive.logger.error("Failed to mount ComputerCraft scripts for " + peripheralName);
|
||||
WarpDrive.logger.error(String.format("Failed to mount ComputerCraft scripts for %s @ %s (%d %d %d)",
|
||||
peripheralName,
|
||||
worldObj == null ? "~NULL~" : worldObj.provider.getDimensionName(),
|
||||
xCoord, yCoord, zCoord));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue