diff --git a/src/main/kotlin/no/iktdev/eventi/events/SoftDispatchExceptions.kt b/src/main/kotlin/no/iktdev/eventi/events/SoftDispatchExceptions.kt index 5cc6a9a..b274149 100644 --- a/src/main/kotlin/no/iktdev/eventi/events/SoftDispatchExceptions.kt +++ b/src/main/kotlin/no/iktdev/eventi/events/SoftDispatchExceptions.kt @@ -15,10 +15,10 @@ sealed class SoftDispatchException( ) class SkipListenerException( - reason: String, + reason: String? = "", currentEvent: Class ) : SoftDispatchException( - message = "Listener skipped: $reason", + message = reason?.ifBlank { "Skipping Listener" } ?: "Listener skipped: $reason", eventType = currentEvent )