From 73b16ca18af2b0a302138eb4c054e0dd32b8f62c Mon Sep 17 00:00:00 2001
From: Iustin Pop <iustin@google.com>
Date: Tue, 6 Nov 2012 15:06:52 +0100
Subject: [PATCH] Annotate confd startup/luxi binding error

The luxi binding is now annotated for better readability.

Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
---
 htools/Ganeti/Query/Server.hs | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/htools/Ganeti/Query/Server.hs b/htools/Ganeti/Query/Server.hs
index 6909cc9c2..980fa8685 100644
--- a/htools/Ganeti/Query/Server.hs
+++ b/htools/Ganeti/Query/Server.hs
@@ -224,7 +224,8 @@ prepQueryD :: Maybe FilePath -> IO (FilePath, S.Socket)
 prepQueryD fpath = do
   let socket_path = fromMaybe Path.defaultQuerySocket fpath
   cleanupSocket socket_path
-  s <- getServer socket_path
+  s <- describeError "binding to the Luxi socket"
+         Nothing (Just socket_path) $ getServer socket_path
   return (socket_path, s)
 
 -- | Main function that runs the query endpoint.
-- 
GitLab