summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMassimiliano Culpo <massimiliano.culpo@gmail.com>2023-03-17 22:43:35 +0100
committerGitHub <noreply@github.com>2023-03-17 17:43:35 -0400
commit0478e5f6847ab062abde450dc709a57d7bd61958 (patch)
treea2141e83d5d91655b3b3bd22defebdfb3c3f5ce3 /lib
parent4f7c147d50b1339d429f972c3eb319d18ab1108e (diff)
downloadspack-0478e5f6847ab062abde450dc709a57d7bd61958.tar.gz
spack-0478e5f6847ab062abde450dc709a57d7bd61958.tar.bz2
spack-0478e5f6847ab062abde450dc709a57d7bd61958.tar.xz
spack-0478e5f6847ab062abde450dc709a57d7bd61958.zip
Improve wording of audit message (#36180)
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/audit.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/spack/spack/audit.py b/lib/spack/spack/audit.py
index a8bbf3f5c5..de570efa97 100644
--- a/lib/spack/spack/audit.py
+++ b/lib/spack/spack/audit.py
@@ -695,8 +695,11 @@ def _ensure_variant_defaults_are_parsable(pkgs, error_cls):
try:
variant.validate_or_raise(vspec, pkg_cls=pkg_cls)
except spack.variant.InvalidVariantValueError:
- error_msg = "The variant '{}' default value in package '{}' cannot be validated"
- errors.append(error_cls(error_msg.format(variant_name, pkg_name), []))
+ error_msg = (
+ "The default value of the variant '{}' in package '{}' failed validation"
+ )
+ question = "Is it among the allowed values?"
+ errors.append(error_cls(error_msg.format(variant_name, pkg_name), [question]))
return errors