lib/lita/handlers/memegen.rb in lita-memegen-1.0.1 vs lib/lita/handlers/memegen.rb in lita-memegen-1.0.2

- old
+ new

@@ -138,14 +138,16 @@ data = MultiJson.load(http_resp.body) if data['success'] response.reply data['result']['instanceImageUrl'] else + Lita.logger.error "#{self.class}: Unable to generate a meme image: #{data.inspect}" response.reply "Error: Unable to generate a meme image" end else + Lita.logger.error "#{self.class}: Unable to generate a meme image: #{http_resp.body}" response.reply "Error: Unable to generate a meme image" end end @@ -153,6 +155,6 @@ end Lita.register_handler(Memegen) end -end \ No newline at end of file +end