diff --git a/lib/spack/spack/solver/asp.py b/lib/spack/spack/solver/asp.py index 06117d62088..e631632c6f4 100644 --- a/lib/spack/spack/solver/asp.py +++ b/lib/spack/spack/solver/asp.py @@ -1979,7 +1979,9 @@ def no_variant_value(self, pkg, variant): raise RuntimeError("No satisfying value for variant %s of package %s" % (variant, pkg)) def multiple_values_sv_variant(self, pkg, variant, value1, value2): - raise spack.error.SpackError("multiple values for variant") + msg = "'%s' spec requested multiple values for single-valued variant %s" % (pkg, variant) + msg += "\n requested %s and %s" % (value1, value2) + raise spack.error.SpackError(msg) def invalid_variant_value(self, pkg, variant, value): raise RuntimeError("Invalid variant value")