summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Baumbach <healther@users.noreply.github.com>2018-08-28 03:26:24 +0200
committerscheibelp <scheibel1@llnl.gov>2018-08-27 21:26:24 -0400
commit7d61ef5078609de15af9c1a6132b6b2e1a329be0 (patch)
tree6ff20932528d57052c7fc0445e236811b8a54264
parent6f5a68a58dec07c1e7699513d373b2e8a6fcd77f (diff)
downloadspack-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__.py2
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