summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTim Laszlo <tim.laszlo@gmail.com>2012-06-07 08:57:03 -0500
committerTim Laszlo <tim.laszlo@gmail.com>2012-06-07 08:57:03 -0500
commit57345e32a9d04d7e22a844c75100ed3a36bce5bd (patch)
tree6b72b5a516d4b384a009333cd785d258f62b6866
parentc2a593d070cd3408e03104d6e7e22a1d98071405 (diff)
downloadbcfg2-57345e32a9d04d7e22a844c75100ed3a36bce5bd.tar.gz
bcfg2-57345e32a9d04d7e22a844c75100ed3a36bce5bd.tar.bz2
bcfg2-57345e32a9d04d7e22a844c75100ed3a36bce5bd.zip
bcfg2-info: print trace when buildfile fails
-rwxr-xr-xsrc/sbin/bcfg2-info4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/sbin/bcfg2-info b/src/sbin/bcfg2-info
index 859826e67..37e9d4371 100755
--- a/src/sbin/bcfg2-info
+++ b/src/sbin/bcfg2-info
@@ -10,6 +10,7 @@ import fnmatch
import logging
import tempfile
import lxml.etree
+import traceback
from code import InteractiveConsole
try:
@@ -382,7 +383,8 @@ class infoCore(cmd.Cmd, Bcfg2.Server.Core.Core):
print("Could not write to %s: %s" % (outfile, err))
print(data)
except Exception:
- print("Failed to build entry %s for host %s" % (fname, client))
+ print("Failed to build entry %s for host %s: %s" %
+ (fname, client, traceback.format_exc().splitlines()[-1]))
raise
def do_buildbundle(self, args):