Skip to content

Commit

Permalink
Merge pull request damog#4 from konklone/patch-1
Browse files Browse the repository at this point in the history
Fixes 'ocurred' typo - thanks!
  • Loading branch information
damog committed Apr 4, 2014
2 parents 205261b + a1cbd28 commit 854b3c8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/feedbag.rb
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def find(url, args = {})
# TODO: actually find out timeout. use Terminator?
# $stderr.puts "Feed looked like feed but might not have passed validation or timed out"
rescue => ex
$stderr.puts "#{ex.class} error ocurred with: `#{url}': #{ex.message}"
$stderr.puts "#{ex.class} error occurred with: `#{url}': #{ex.message}"
end

begin
Expand Down Expand Up @@ -147,13 +147,13 @@ def find(url, args = {})
end
end
rescue Timeout::Error => err
$stderr.puts "Timeout error ocurred with `#{url}: #{err}'"
$stderr.puts "Timeout error occurred with `#{url}: #{err}'"
rescue OpenURI::HTTPError => the_error
$stderr.puts "Error ocurred with `#{url}': #{the_error}"
$stderr.puts "Error occurred with `#{url}': #{the_error}"
rescue SocketError => err
$stderr.puts "Socket error ocurred with: `#{url}': #{err}"
$stderr.puts "Socket error occurred with: `#{url}': #{err}"
rescue => ex
$stderr.puts "#{ex.class} error ocurred with: `#{url}': #{ex.message}"
$stderr.puts "#{ex.class} error occurred with: `#{url}': #{ex.message}"
ensure
return @feeds
end
Expand Down

0 comments on commit 854b3c8

Please sign in to comment.