diff options
author | Andreas Baumbach <healther@users.noreply.github.com> | 2018-08-28 03:26:24 +0200 |
---|---|---|
committer | scheibelp <scheibel1@llnl.gov> | 2018-08-27 21:26:24 -0400 |
commit | 7d61ef5078609de15af9c1a6132b6b2e1a329be0 (patch) | |
tree | 6ff20932528d57052c7fc0445e236811b8a54264 | |
parent | 6f5a68a58dec07c1e7699513d373b2e8a6fcd77f (diff) | |
download | spack-7d61ef5078609de15af9c1a6132b6b2e1a329be0.tar.gz spack-7d61ef5078609de15af9c1a6132b6b2e1a329be0.tar.bz2 spack-7d61ef5078609de15af9c1a6132b6b2e1a329be0.tar.xz spack-7d61ef5078609de15af9c1a6132b6b2e1a329be0.zip |
import spack load error message (#9088)
It now additionally prints spec hash and options
-rw-r--r-- | lib/spack/spack/cmd/modules/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/spack/spack/cmd/modules/__init__.py b/lib/spack/spack/cmd/modules/__init__.py index 784c49daa2..2460618312 100644 --- a/lib/spack/spack/cmd/modules/__init__.py +++ b/lib/spack/spack/cmd/modules/__init__.py @@ -336,7 +336,7 @@ def modules_cmd(parser, args, module_type, callbacks=callbacks): except MultipleSpecsMatch: msg = "the constraint '{query}' matches multiple packages:\n" for s in specs: - msg += '\t' + s.cformat() + '\n' + msg += '\t' + s.cformat(format_string='$/ $_$@$+$%@+$+$=') + '\n' tty.error(msg.format(query=args.constraint)) tty.die('In this context exactly **one** match is needed: please specify your constraints better.') # NOQA: ignore=E501 |