summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-10-10 12:58:03 +0100
committerCarl Hetherington <cth@carlh.net>2015-10-10 12:58:03 +0100
commitd9bac7a01c8e450c46f61619d46b0ecc1a3d4ee5 (patch)
tree56c940db0d5e71712d9cfc5804795e91520103b2
parentf0d2e0980e198c6b8c15557a2d8b984bd274c589 (diff)
Better error.
-rwxr-xr-xcdist6
1 files changed, 3 insertions, 3 deletions
diff --git a/cdist b/cdist
index cb02a27..00d0f9c 100755
--- a/cdist
+++ b/cdist
@@ -423,7 +423,7 @@ class LinuxTarget(Target):
self.set('LINKFLAGS', '-L%s/lib' % self.directory)
self.set('PKG_CONFIG_PATH', '%s/lib/pkgconfig:/usr/local/lib/pkgconfig' % self.directory)
self.set('PATH', '/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin')
-
+
class ChrootTarget(LinuxTarget):
"""Build in a chroot"""
def __init__(self, distro, version, bits, directory=None):
@@ -551,8 +551,8 @@ def target_factory(s, debug, work):
else:
bits = 32
target = HostTarget("fedora", l[2], bits, work)
- except:
- raise Error("could not identify distribution for `host' target")
+ except Exception as e:
+ raise Error("could not identify distribution for `host' target (%s)" % e)
elif s.startswith('osx-'):
target = OSXSingleTarget(int(s.split('-')[1]), work)
elif s == 'osx':