aboutsummaryrefslogtreecommitdiff
path: root/featureClass
diff options
context:
space:
mode:
Diffstat (limited to 'featureClass')
-rw-r--r--featureClass/class.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/featureClass/class.js b/featureClass/class.js
index 13ddf81..581f6ba 100644
--- a/featureClass/class.js
+++ b/featureClass/class.js
@@ -79,7 +79,7 @@ class Feature {
this.forgeEvents[theEvent.id] = theEvent
}catch(e){
- if(!messageIfError) messageIfError = "An error occured while registering the event " + event.toString() + ", this may cause " + this.constructor.name + " to not work properly."
+ if(!messageIfError) messageIfError = "An error occured while registering the event " + event.class.toString().split(".").pop() + ", this may cause " + this.constructor.name + " to not work properly."
ChatLib.chat(this.FeatureManager.messagePrefix + messageIfError)
}