Compare commits

...
Author SHA1 Message Date
Martin Robertz ddb5c0f58d update 2025-03-19 16:23:57 +01:00
Glease 49c648c689 narrow catch scope 2025-03-17 17:20:52 +08:00
Glease 792952fbbd Print stack trace of suppressed exception as well 2025-03-17 17:19:33 +08:00
7 changed files with 20 additions and 12 deletions

No files matched your search

+1 -1
View File
@@ -1,7 +1,7 @@
// Add your dependencies here
dependencies {
implementation('com.github.GTNewHorizons:NotEnoughItems:2.6.45-GTNH:dev')
implementation('com.github.GTNewHorizons:NotEnoughItems:2.7.30-GTNH:dev')
shadowImplementation('au.com.bytecode:opencsv:2.4')
}
Binary file not shown.
+1 -1
View File
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
Vendored
+2 -3
View File
@@ -86,8 +86,7 @@ done
# shellcheck disable=SC2034
APP_BASE_NAME=${0##*/}
# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s
' "$PWD" ) || exit
APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s\n' "$PWD" ) || exit
# Use the maximum available, or set MAX_FD != -1 to use that value.
MAX_FD=maximum
@@ -206,7 +205,7 @@ fi
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
# Collect all arguments for the java command:
# * DEFAULT_JVM_OPTS, JAVA_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
# * DEFAULT_JVM_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
# and any embedded shellness will be escaped.
# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be
# treated as '${Hostname}' itself on the command line.
+1 -1
View File
@@ -17,7 +17,7 @@ pluginManagement {
}
plugins {
id 'com.gtnewhorizons.gtnhsettingsconvention' version '1.0.29'
id 'com.gtnewhorizons.gtnhsettingsconvention' version '1.0.37'
}
@@ -112,7 +112,7 @@ public class HUDHandlerIAspectContainer implements IWailaDataProvider {
}
}
} catch (Exception e) {
} catch (ReflectiveOperationException e) {
throw new RuntimeException(e);
}
@@ -17,11 +17,20 @@ public class WailaExceptionHandler {
if (!errs.contains(className)) {
errs.add(className);
for (StackTraceElement elem : e.getStackTrace()) {
Waila.log.log(
Level.WARN,
String.format("%s.%s:%s", elem.getClassName(), elem.getMethodName(), elem.getLineNumber()));
if (elem.getClassName().contains("waila")) break;
Throwable working = e;
while (working != null) {
if (working != e) {
Waila.log.log(Level.WARN, String.format("Caused by: %s", working));
}
for (StackTraceElement elem : working.getStackTrace()) {
Waila.log.log(
Level.WARN,
String.format("%s.%s:%s", elem.getClassName(), elem.getMethodName(), elem.getLineNumber()));
if (working == e && elem.getClassName().contains("waila")) break;
}
working = working.getCause();
}
Waila.log.log(Level.WARN, String.format("Catched unhandled exception : [%s] %s", className, e));