Commit c00a313fc8e9010ebf94778b1080bbb3e43c49b4

Authored by Rodrigo Souto
Committed by Antonio Terceiro
1 parent eefaaa3a

Invalid feeds show a human exception message

  * When the html informed wasn't in a feed format the message shown
    was the traceback of the exception.

ActionItem1347
Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
lib/feed_handler.rb
... ... @@ -25,7 +25,7 @@ class FeedHandler
25 25 begin
26 26 return FeedParser::Feed::new(content)
27 27 rescue Exception => ex
28   - raise FeedHandler::ParseError, ex.to_s
  28 + raise FeedHandler::ParseError, "Invalid feed format."
29 29 end
30 30 end
31 31  
... ...