# Copyright (c) 2016 The Regents of the University of Michigan
# All rights reserved.
# This software is licensed under the MIT License.


class Error(Exception):
    pass


class ConfigError(Error, RuntimeError):
    pass


class AuthenticationError(Error, RuntimeError):
    pass

@@ -254,29 +254,225 @@
 ror, RuntimeError):%0A
+%0A
     
-pass
+def __str__(self):%0A        if len(self.args) %3E 0:%0A            return %22Failed to authenticate with host '%7B%7D'.%22.format(self.args%5B0%5D)%0A        else:%0A            return %22Failed to authenticate with host.%22
 %0A

Improve error message for authentication issues.