summaryrefslogtreecommitdiff
path: root/lib/nickserver/hkp/fetch_key.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/nickserver/hkp/fetch_key.rb')
-rw-r--r--lib/nickserver/hkp/fetch_key.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/nickserver/hkp/fetch_key.rb b/lib/nickserver/hkp/fetch_key.rb
index 211ae92..6f91d8c 100644
--- a/lib/nickserver/hkp/fetch_key.rb
+++ b/lib/nickserver/hkp/fetch_key.rb
@@ -16,8 +16,8 @@ module Nickserver; module HKP
get_key_by_fingerprint(best.keyid) {|key|
self.succeed key
}
- }.errback {|msg|
- self.fail msg
+ }.errback {|status, msg|
+ self.fail status, msg
}
self
end
@@ -30,13 +30,13 @@ module Nickserver; module HKP
http = EventMachine::HttpRequest.new(Config.hkp_url).get(:query => params)
http.callback {
if http.response_header.status != 200
- self.fail http.response_header.status #"Request failed with #{http.response_header.status}: #{http.response}"
+ self.fail http.response_header.status, "HKP Request failed"
else
yield http.response
end
}
http.errback {
- self.fail http.error
+ self.fail 0, http.error
}
end