mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-01-13 02:40:28 +00:00
parent
86b60855d6
commit
9e1de23f4a
@ -14,7 +14,7 @@ parchmentMc = "1.19.2"
|
||||
asm = "9.3"
|
||||
autoService = "1.0.1"
|
||||
checkerFramework = "3.12.0"
|
||||
cobalt = "0.5.9"
|
||||
cobalt = "0.5.10"
|
||||
fastutil = "8.5.9"
|
||||
guava = "31.1-jre"
|
||||
jetbrainsAnnotations = "23.0.0"
|
||||
|
@ -15,10 +15,12 @@ public final class Logging {
|
||||
public static final Marker COMPUTER_ERROR = MarkerFactory.getMarker("COMPUTER_ERROR");
|
||||
public static final Marker HTTP_ERROR = MarkerFactory.getMarker("COMPUTER_ERROR.HTTP");
|
||||
public static final Marker JAVA_ERROR = MarkerFactory.getMarker("COMPUTER_ERROR.JAVA");
|
||||
public static final Marker VM_ERROR = MarkerFactory.getMarker("COMPUTER_ERROR.VM");
|
||||
|
||||
static {
|
||||
HTTP_ERROR.add(COMPUTER_ERROR);
|
||||
JAVA_ERROR.add(COMPUTER_ERROR);
|
||||
VM_ERROR.add(COMPUTER_ERROR);
|
||||
}
|
||||
|
||||
private Logging() {
|
||||
|
@ -83,6 +83,7 @@ public class CobaltLuaMachine implements ILuaMachine {
|
||||
}
|
||||
});
|
||||
})
|
||||
.errorReporter(e -> LOG.error(Logging.VM_ERROR, "Error occurred in the Lua runtime. Computer will continue to execute.", e))
|
||||
.build();
|
||||
|
||||
globals = new LuaTable();
|
||||
|
Loading…
Reference in New Issue
Block a user