diff options
author | Lars Wirzenius <lars.wirzenius@codethink.co.uk> | 2012-06-29 10:56:11 +0100 |
---|---|---|
committer | Lars Wirzenius <lars.wirzenius@codethink.co.uk> | 2012-06-29 10:56:11 +0100 |
commit | da6058c4dbfa23b045c67d27cac81308974d492a (patch) | |
tree | 2d2934957c62f7035cf1d3991023ebd4f0df46ce | |
parent | d32c98f4b524b56938a7d5b942b100924dc5df61 (diff) | |
download | morph-da6058c4dbfa23b045c67d27cac81308974d492a.tar.gz |
Improve error message for missing build-deps
Suggested by Richard Maw.
-rwxr-xr-x | morphlib/app.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/morphlib/app.py b/morphlib/app.py index fb0ddbaf..a8cad8a2 100755 --- a/morphlib/app.py +++ b/morphlib/app.py @@ -463,8 +463,10 @@ class Morph(cliapp.Application): for source in morphology['sources']: if source.get('build-depends', None) is None: name = source.get('name', source.get('repo', 'unknown')) - raise morphlib.Error('Add build dependencies to ' - 'stratum %s for %s' % + raise morphlib.Error('No build dependencies ' + 'stratum %s for chunk %s ' + '(build-depends is a mandatory ' + 'field)' % (filename, name)) def add_to_pool(reponame, ref, filename, absref, morphology): |