Give slightly more specific error message

This commit is contained in:
Raphael 2010-09-17 11:02:12 -07:00
parent 71ac61c01d
commit b3549c79f4

View file

@ -89,6 +89,8 @@ class Person
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 )