diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-10-10 12:58:03 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-10-10 12:58:03 +0100 |
| commit | d9bac7a01c8e450c46f61619d46b0ecc1a3d4ee5 (patch) | |
| tree | 56c940db0d5e71712d9cfc5804795e91520103b2 | |
| parent | f0d2e0980e198c6b8c15557a2d8b984bd274c589 (diff) | |
Better error.
| -rwxr-xr-x | cdist | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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': |
