summaryrefslogtreecommitdiffhomepage
path: root/HTTP
diff options
context:
space:
mode:
authorJoey Hess <joeyh@joeyh.name>2016-09-27 13:09:30 -0400
committerJoey Hess <joeyh@joeyh.name>2016-09-27 13:09:30 -0400
commit8fe65bd0f70c1cd2fc83469f401c987d69eb4370 (patch)
tree6e37cd1050f7b0b8d59b4198f6843c3faa54dbb9 /HTTP
parentd154002e063c1c3af5aba13cf05a11df8b8f9897 (diff)
downloadkeysafe-8fe65bd0f70c1cd2fc83469f401c987d69eb4370.tar.gz
Added --check-servers mode, which is useful both at the command line to see what servers keysafe knows about, and as a cron job.
This commit was sponsored by Jake Vosloo on Patreon.
Diffstat (limited to 'HTTP')
-rw-r--r--HTTP/Client.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/HTTP/Client.hs b/HTTP/Client.hs
index f13620e..50c5906 100644
--- a/HTTP/Client.hs
+++ b/HTTP/Client.hs
@@ -76,7 +76,7 @@ serverRequest'
serverRequest' srv a = go Nothing (serverUrls srv)
where
go lasterr [] = return $ Left $
- maybe "no available servers" (\err -> "server failure: " ++ show err) lasterr
+ maybe "no known address" (\err -> "server failure: " ++ show err) lasterr
go _ (url:urls) = do
manager <- torableManager
res <- runExceptT $ a manager url