Skip to content

Commit

Permalink
Give slightly more specific error message
Browse files Browse the repository at this point in the history
  • Loading branch information
Raphael committed Sep 17, 2010
1 parent 71ac61c commit b3549c7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/models/person.rb
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ def self.by_webfinger( identifier, opts = {})
f = Redfinger.finger(identifier)
rescue SocketError => e
raise "Diaspora server for #{identifier} not found" if e.message =~ /Name or service not known/
rescue Errno::ETIMEDOUT => e
raise "Connection timed out to Diaspora server for #{identifier}"
end
raise "No webfinger profile found at #{identifier}" if f.nil? || f.links.empty?
Person.from_webfinger_profile(identifier, f )
Expand Down

0 comments on commit b3549c7

Please sign in to comment.