• Chandan Singh's avatar
    _loader/loader.py: Report element-path when failing to load elements · 7df95654
    Chandan Singh authored
    It can be confusing, especially to new BuildStream users, that the CLI
    expects targets to be specified relative to element-path and not the
    current directory. Previously, the CLI would give a generic message
    stating that the file could not be found but it was not obvious that it
    was looking in the `element-path` directory.
    
    Explicitly print the element-path in the summary. Also, try to check if
    the specified element exists in the elements directory and print a hint
    to use the element-path relative paths if that's the case.
    
    Fixes #396.
    
    This is is also related to #341. This commit aims to tackle that issue
    by trying to educate users about element-path.
    7df95654
Name
Last commit
Last update
.gitlab Loading commit data...
buildstream Loading commit data...
contrib Loading commit data...
doc Loading commit data...
man Loading commit data...
tests Loading commit data...
.coveragerc Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.gitlab-ci.yml Loading commit data...
.pylintrc Loading commit data...
BuildStream.doap Loading commit data...
COPYING Loading commit data...
HACKING.rst Loading commit data...
MAINTAINERS Loading commit data...
MANIFEST.in Loading commit data...
NEWS Loading commit data...
README.rst Loading commit data...
conftest.py Loading commit data...
setup.cfg Loading commit data...
setup.py Loading commit data...
versioneer.py Loading commit data...