summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Kosukhin <sergey.kosukhin@mpimet.mpg.de>2022-06-10 18:24:27 +0200
committerMassimiliano Culpo <massimiliano.culpo@gmail.com>2022-07-20 08:10:41 +0200
commit6baf171700d16d106f4b1e3a91058fd24dc3b041 (patch)
treebdf3dcca6f57be4135cd645e4b2b2a1db174f3ed
parent891bb7131b7c8b9704f59c92345c9c9de9fda0cb (diff)
downloadspack-6baf171700d16d106f4b1e3a91058fd24dc3b041.tar.gz
spack-6baf171700d16d106f4b1e3a91058fd24dc3b041.tar.bz2
spack-6baf171700d16d106f4b1e3a91058fd24dc3b041.tar.xz
spack-6baf171700d16d106f4b1e3a91058fd24dc3b041.zip
clingo: fix string formatting in error messages (#31084)
-rw-r--r--lib/spack/spack/solver/concretize.lp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/spack/spack/solver/concretize.lp b/lib/spack/spack/solver/concretize.lp
index 5ee2eeb731..67ea66d6ec 100644
--- a/lib/spack/spack/solver/concretize.lp
+++ b/lib/spack/spack/solver/concretize.lp
@@ -481,13 +481,13 @@ variant(Package, Variant) :- variant_condition(ID, Package, Variant),
condition_holds(ID).
% a variant cannot be set if it is not a variant on the package
-error(2, "Cannot set variant '{0}' for package '{1}' because the variant condition cannot be satisfied for the given spec", Package, Variant)
+error(2, "Cannot set variant '{0}' for package '{1}' because the variant condition cannot be satisfied for the given spec", Variant, Package)
:- variant_set(Package, Variant),
not variant(Package, Variant),
build(Package).
% a variant cannot take on a value if it is not a variant of the package
-error(2, "Cannot set variant '{0}' for package '{1}' because the variant condition cannot be satisfied for the given spec", Package, Variant)
+error(2, "Cannot set variant '{0}' for package '{1}' because the variant condition cannot be satisfied for the given spec", Variant, Package)
:- variant_value(Package, Variant, _),
not variant(Package, Variant),
build(Package).