Better error handling and message when the (site) authentication didn't work.

Signed-off-by: Jean-Marc Eurin <jmeurin@google.com>


git-svn-id: http://test.kernel.org/svn/autotest/trunk@4299 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/frontend/afe/rpc_client_lib.py b/frontend/afe/rpc_client_lib.py
index 58268e3..2dd3e17 100644
--- a/frontend/afe/rpc_client_lib.py
+++ b/frontend/afe/rpc_client_lib.py
@@ -10,6 +10,10 @@
 from autotest_lib.client.common_lib import utils
 
 
+class AuthError(Exception):
+    pass
+
+
 def get_proxy(*args, **kwargs):
     """Use this to access the AFE or TKO RPC interfaces."""
     return proxy.ServiceProxy(*args, **kwargs)