spack repo add: fix error message when `packages' directory is missing (#11031)
This commit is contained in:
parent
229ed5c228
commit
4793242158
1 changed files with 1 additions and 1 deletions
|
@ -720,7 +720,7 @@ def check(condition, msg):
|
|||
|
||||
self.packages_path = os.path.join(self.root, packages_dir_name)
|
||||
check(os.path.isdir(self.packages_path),
|
||||
"No directory '%s' found in '%s'" % (repo_config_name, root))
|
||||
"No directory '%s' found in '%s'" % (packages_dir_name, root))
|
||||
|
||||
# Read configuration and validate namespace
|
||||
config = self._read_config()
|
||||
|
|
Loading…
Reference in a new issue