summaryrefslogtreecommitdiffstats
path: root/EssentialsGroupManager/src/org/anjocaido/groupmanager
diff options
context:
space:
mode:
authorElgarL <ElgarL@palmergames.com>2012-08-31 21:56:46 +0100
committerElgarL <ElgarL@palmergames.com>2012-08-31 21:56:46 +0100
commit79c70b1f657f5de77119e494a632a9335a5154bb (patch)
tree1c27aa1f8656f13903415da23e6cf857acd1f4d4 /EssentialsGroupManager/src/org/anjocaido/groupmanager
parentcfe634e8f7ced43a70e549681abe7022683cbf59 (diff)
downloadEssentials-79c70b1f657f5de77119e494a632a9335a5154bb.tar
Essentials-79c70b1f657f5de77119e494a632a9335a5154bb.tar.gz
Essentials-79c70b1f657f5de77119e494a632a9335a5154bb.tar.lz
Essentials-79c70b1f657f5de77119e494a632a9335a5154bb.tar.xz
Essentials-79c70b1f657f5de77119e494a632a9335a5154bb.zip
Include the GM version when logging errors.
Diffstat (limited to 'EssentialsGroupManager/src/org/anjocaido/groupmanager')
-rw-r--r--EssentialsGroupManager/src/org/anjocaido/groupmanager/GroupManager.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/EssentialsGroupManager/src/org/anjocaido/groupmanager/GroupManager.java b/EssentialsGroupManager/src/org/anjocaido/groupmanager/GroupManager.java
index 61bb41dd1..46ec861a3 100644
--- a/EssentialsGroupManager/src/org/anjocaido/groupmanager/GroupManager.java
+++ b/EssentialsGroupManager/src/org/anjocaido/groupmanager/GroupManager.java
@@ -246,7 +246,7 @@ public class GroupManager extends JavaPlugin {
lastError = ex.getMessage();
GroupManager.logger.severe("===================================================");
- GroupManager.logger.severe("= ERROR REPORT START =");
+ GroupManager.logger.severe("= ERROR REPORT START - " + this.getDescription().getVersion() + " =");
GroupManager.logger.severe("===================================================");
GroupManager.logger.severe("=== PLEASE COPY AND PASTE THE ERROR.LOG FROM THE ==");
GroupManager.logger.severe("= GROUPMANAGER FOLDER TO AN ESSENTIALS DEVELOPER =");
@@ -258,7 +258,9 @@ public class GroupManager extends JavaPlugin {
// Append this error to the error log.
try {
- String error = "=============================== GM ERROR LOG ===============================\n\n";
+ String error = "=============================== GM ERROR LOG ===============================\n";
+ error += "= ERROR REPORT START - " + this.getDescription().getVersion() + " =\n\n";
+
error += Tasks.getStackTraceAsString(ex);
error += "\n============================================================================\n";