diff options
author | Tim Laszlo <tim.laszlo@gmail.com> | 2012-06-07 08:57:03 -0500 |
---|---|---|
committer | Tim Laszlo <tim.laszlo@gmail.com> | 2012-06-07 08:57:03 -0500 |
commit | 57345e32a9d04d7e22a844c75100ed3a36bce5bd (patch) | |
tree | 6b72b5a516d4b384a009333cd785d258f62b6866 | |
parent | c2a593d070cd3408e03104d6e7e22a1d98071405 (diff) | |
download | bcfg2-57345e32a9d04d7e22a844c75100ed3a36bce5bd.tar.gz bcfg2-57345e32a9d04d7e22a844c75100ed3a36bce5bd.tar.bz2 bcfg2-57345e32a9d04d7e22a844c75100ed3a36bce5bd.zip |
bcfg2-info: print trace when buildfile fails
-rwxr-xr-x | src/sbin/bcfg2-info | 4 |
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): |