Handle errors in Apache.

This commit is contained in:
Kristian S. Stangeland 2014-03-28 20:50:10 +01:00
parent 485c3856c1
commit 300d3c2475

View File

@ -421,6 +421,9 @@ public class DetailedErrorReporter implements ErrorReporter {
} catch (LinkageError ex) {
// Apache is probably missing
apacheCommonsMissing = true;
} catch (Exception e) {
// Don't use the error logger to log errors in error logging (that could lead to infinite loops)
System.err.print("[ProtocolLib] Warning: Cannot convert to a String with Apache: " + e.getMessage());
}
// Use our custom object printer instead