Commit c00a313fc8e9010ebf94778b1080bbb3e43c49b4
Committed by
Antonio Terceiro
1 parent
eefaaa3a
Exists in
master
and in
23 other branches
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,7 +25,7 @@ class FeedHandler | ||
| 25 | begin | 25 | begin |
| 26 | return FeedParser::Feed::new(content) | 26 | return FeedParser::Feed::new(content) |
| 27 | rescue Exception => ex | 27 | rescue Exception => ex |
| 28 | - raise FeedHandler::ParseError, ex.to_s | 28 | + raise FeedHandler::ParseError, "Invalid feed format." |
| 29 | end | 29 | end |
| 30 | end | 30 | end |
| 31 | 31 |