From e2f90fcfeaf091e52bd76de3f948523011358c6b Mon Sep 17 00:00:00 2001 From: Eloston Date: Wed, 7 Mar 2018 05:10:01 +0000 Subject: [PATCH] buildkit.cli: Fix wrong messages for FileNotFoundError --- buildkit/cli.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/buildkit/cli.py b/buildkit/cli.py index 35697c76..994aaacb 100644 --- a/buildkit/cli.py +++ b/buildkit/cli.py @@ -188,7 +188,7 @@ def _add_prubin(subparsers): try: resolved_tree = args.tree.resolve() except FileNotFoundError as exc: - logger.error('Buildspace tree does not exist: %s', exc) + logger.error('File or directory does not exist: %s', exc) raise _CLIError() missing_file = False for tree_node in args.bundle.pruning: @@ -218,7 +218,7 @@ def _add_subdom(subparsers): if not args.only or args.only == 'patches': domain_substitution.process_bundle_patches(args.bundle) except FileNotFoundError as exc: - get_logger().error('Buildspace tree does not exist: %s', exc) + get_logger().error('File or directory does not exist: %s', exc) raise _CLIError() except NotADirectoryError as exc: get_logger().error('Patches directory does not exist: %s', exc)