Print stacktraces on error

This commit is contained in:
2011-05-10 16:01:42 +01:00
parent ac021ecd1e
commit 1a8e7fb991
2 changed files with 5 additions and 1 deletions

View File

@@ -201,7 +201,8 @@ public class BukkitXMPP extends JavaPlugin implements PacketListener {
try { try {
sendMUCMessage("Online Players:" + buffer); sendMUCMessage("Online Players:" + buffer);
} catch (Exception e) { } catch (Exception e) {
// TODO: fault handling // TODO: Error handling
e.printStackTrace();
} }
} }

View File

@@ -49,6 +49,7 @@ public class BukkitXMPPPlayerListener extends PlayerListener {
plugin.sendMUCMessage("[" + p.getDisplayName() + "] " + msg); plugin.sendMUCMessage("[" + p.getDisplayName() + "] " + msg);
} catch (Exception e) { } catch (Exception e) {
// TODO: Error handling // TODO: Error handling
e.printStackTrace();
} }
} }
@@ -60,6 +61,7 @@ public class BukkitXMPPPlayerListener extends PlayerListener {
plugin.sendMUCMessage(p.getDisplayName() + " has left the server"); plugin.sendMUCMessage(p.getDisplayName() + " has left the server");
} catch (Exception e) { } catch (Exception e) {
// TODO: Error handling // TODO: Error handling
e.printStackTrace();
} }
} }
@@ -70,6 +72,7 @@ public class BukkitXMPPPlayerListener extends PlayerListener {
plugin.sendMUCMessage(p.getDisplayName() + " has joined the server"); plugin.sendMUCMessage(p.getDisplayName() + " has joined the server");
} catch (Exception e) { } catch (Exception e) {
// TODO: Error handling // TODO: Error handling
e.printStackTrace();
} }
} }
} }