X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=data%2Frbot%2Fplugins%2Freaction.rb;h=ee338e2d38dae244e6487f1a5150dc5663f14956;hb=eb6fc83e7a46a23ce8ffa7750ae62dcb0574769b;hp=d358000c8582945ee5961a5468cd63221dad6535;hpb=0f277c32dd269937fbbe6427b416214ae70c70e2;p=user%2Fhenk%2Fcode%2Fruby%2Frbot.git diff --git a/data/rbot/plugins/reaction.rb b/data/rbot/plugins/reaction.rb index d358000c..ee338e2d 100644 --- a/data/rbot/plugins/reaction.rb +++ b/data/rbot/plugins/reaction.rb @@ -170,7 +170,7 @@ class ReactionPlugin < Plugin super if @registry.has_key?(:reactions) @reactions = @registry[:reactions] - raise unless @reactions + raise LoadError, "corrupted reaction database" unless @reactions else @reactions = [] end