• 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
..
_artifactcache Loading commit data...
_frontend Loading commit data...
_fuse Loading commit data...
_loader Loading commit data...
_options Loading commit data...
_platform Loading commit data...
_scheduler Loading commit data...
data Loading commit data...
plugins Loading commit data...
sandbox Loading commit data...
__init__.py Loading commit data...
_cachekey.py Loading commit data...
_context.py Loading commit data...
_elementfactory.py Loading commit data...
_exceptions.py Loading commit data...
_message.py Loading commit data...
_ostree.py Loading commit data...
_pipeline.py Loading commit data...
_plugincontext.py Loading commit data...
_profile.py Loading commit data...
_project.py Loading commit data...
_projectrefs.py Loading commit data...
_signals.py Loading commit data...
_site.py Loading commit data...
_sourcefactory.py Loading commit data...
_stream.py Loading commit data...
_variables.py Loading commit data...
_version.py Loading commit data...
_versions.py Loading commit data...
_workspaces.py Loading commit data...
_yaml.py Loading commit data...
buildelement.py Loading commit data...
element.py Loading commit data...
plugin.py Loading commit data...
scriptelement.py Loading commit data...
source.py Loading commit data...
utils.py Loading commit data...