Skip to content

Commit cf55b4a

Browse files
committed
Allow bad service initializations to print stacktrace if occuring
1 parent 78787bc commit cf55b4a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/main/java/org/spongepowered/asm/service/MixinService.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -248,14 +248,14 @@ private IMixinService initService() {
248248
MixinService.logBuffer.debug("MixinService [{}] is not valid", service.getName());
249249
badServices.add(String.format("INVALID[%s]", service.getName()));
250250
} catch (ServiceConfigurationError sce) {
251-
// sce.printStackTrace();
251+
sce.printStackTrace();
252252
brokenServiceCount++;
253253
} catch (Throwable th) {
254254
String faultingClassName = th.getStackTrace()[0].getClassName();
255255
MixinService.logBuffer.debug("MixinService [{}] failed initialisation: {}", faultingClassName, th.getMessage());
256256
int pos = faultingClassName.lastIndexOf('.');
257257
badServices.add(String.format("ERROR[%s]", pos < 0 ? faultingClassName : faultingClassName.substring(pos + 1)));
258-
// th.printStackTrace();
258+
th.printStackTrace();
259259
}
260260
}
261261

0 commit comments

Comments
 (0)