Skip to content

Commit

Permalink
Show whole path when tree root not found, docs
Browse files Browse the repository at this point in the history
  • Loading branch information
psss committed Jun 12, 2018
1 parent 82ac9dc commit e6e3bfa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,9 @@ Utils

Various utility options.

--path PATHS
Path to the metadata tree (default: current directory)

--verbose
Print additional information standard error output

Expand Down
3 changes: 2 additions & 1 deletion fmf/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,8 @@ def _initialize(self, path):
while ".fmf" not in next(os.walk(root))[1]:
if root == "/":
raise utils.FileError(
"Unable to find root directory for '{0}'".format(path))
"Unable to find tree root for '{0}'.".format(
os.path.abspath(path)))
root = os.path.abspath(os.path.join(root, os.pardir))
except StopIteration:
raise utils.FileError("Invalid directory path: {0}".format(root))
Expand Down

0 comments on commit e6e3bfa

Please sign in to comment.