summaryrefslogtreecommitdiffstats
path: root/ipapython/admintool.py
diff options
context:
space:
mode:
Diffstat (limited to 'ipapython/admintool.py')
-rw-r--r--ipapython/admintool.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/ipapython/admintool.py b/ipapython/admintool.py
index 5aa1c19bb..e40f300b1 100644
--- a/ipapython/admintool.py
+++ b/ipapython/admintool.py
@@ -291,6 +291,10 @@ class AdminTool(object):
self.command_name, type(exception).__name__, exception)
if error_message:
self.log.error(error_message)
+ message = "The %s command failed." % self.command_name
+ if self.log_file_name:
+ message += " See %s for more information" % self.log_file_name
+ self.log.error(message)
def log_success(self):
self.log.info('The %s command was successful', self.command_name)