X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=data%2Frbot%2Fplugins%2Fgames%2Fhangman.rb;h=612b83501e68374053193782722e8c475d9b434e;hb=c4e7896a87d97988926d3b57f62599384c5c7189;hp=d3c4d20a22811c36692a6cf65ffb371710148d9a;hpb=f6a26a41095dc936fc2a944f7b726cd31011e878;p=user%2Fhenk%2Fcode%2Fruby%2Frbot.git diff --git a/data/rbot/plugins/games/hangman.rb b/data/rbot/plugins/games/hangman.rb index d3c4d20a..612b8350 100644 --- a/data/rbot/plugins/games/hangman.rb +++ b/data/rbot/plugins/games/hangman.rb @@ -16,6 +16,7 @@ module RandomWord def self.get(count=1) res = Net::HTTP.post_form(URI.parse(SITE), {'numwords' => count}) + raise _("random word generator site failed with #{res.code} - #{res.message}") unless Net::HTTPSuccess === res words = res.body.scan(%r{