Generate a better error message. Use the package name in the installing message.

This commit is contained in:
Chris Johns 2013-03-15 15:26:51 +11:00
parent 4266597633
commit aa4f8f66e0
2 changed files with 4 additions and 2 deletions

View File

@ -506,9 +506,11 @@ def run(args):
del b
except error.general, gerr:
print gerr
print >> sys.stderr, 'Build FAILED'
sys.exit(1)
except error.internal, ierr:
print ierr
print >> sys.stderr, 'Build FAILED'
sys.exit(1)
except error.exit, eerr:
pass

View File

@ -153,8 +153,7 @@ class buildset:
if not self.opts.get_arg('--no-install'):
dst = _build.config.expand('%{_prefix}')
src = path.join(src, dst)
_notice(self.opts, 'installing: %s -> %s' % \
(self.bset_pkg, path.host(dst)))
_notice(self.opts, 'installing: %s -> %s' % (_build.name(), path.host(dst)))
if not self.opts.dry_run():
self.copy(src, dst)
@ -374,6 +373,7 @@ def run():
print 'dep[%d]: %s' % (c, d)
except error.general, gerr:
print gerr
print >> sys.stderr, 'Build FAILED'
sys.exit(1)
except error.internal, ierr:
print ierr