Skip to content

Commit

Permalink
Better error messages for asyncCheckPattern. (#2605)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomprince authored Dec 22, 2024
1 parent 6f54826 commit 8c07321
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,14 @@ private void searchingTask() {
if (Platform.isServerNotSafe()) return;
IN_SERVICE.set(true);
for (var controller : controllers) {
controller.asyncCheckPattern(periodID);
try {
controller.asyncCheckPattern(periodID);
} catch (Throwable e) {
GTCEu.LOGGER.error("Error while assembling multiblock {}: {}", controller, e.getMessage());
}
}
} catch (Throwable e) {
GTCEu.LOGGER.error("asyncThreadLogic error: {}", e.getMessage());
GTCEu.LOGGER.error("Error while assembling multiblocks: {}", e.getMessage());
} finally {
IN_SERVICE.set(false);
}
Expand Down

0 comments on commit 8c07321

Please sign in to comment.