diff options
author | Massimiliano Culpo <massimiliano.culpo@gmail.com> | 2023-03-17 22:43:35 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-17 17:43:35 -0400 |
commit | 0478e5f6847ab062abde450dc709a57d7bd61958 (patch) | |
tree | a2141e83d5d91655b3b3bd22defebdfb3c3f5ce3 | |
parent | 4f7c147d50b1339d429f972c3eb319d18ab1108e (diff) | |
download | spack-0478e5f6847ab062abde450dc709a57d7bd61958.tar.gz spack-0478e5f6847ab062abde450dc709a57d7bd61958.tar.bz2 spack-0478e5f6847ab062abde450dc709a57d7bd61958.tar.xz spack-0478e5f6847ab062abde450dc709a57d7bd61958.zip |
Improve wording of audit message (#36180)
-rw-r--r-- | lib/spack/spack/audit.py | 7 |
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 |