diff options
author | Massimiliano Culpo <massimiliano.culpo@gmail.com> | 2023-10-13 11:18:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-13 11:18:55 +0200 |
commit | 3752fe9e4249e4467c8ab0badab876a81b186619 (patch) | |
tree | 123de1f005c4e8b2ec0219bff774de46c4aeb3a4 /lib | |
parent | 8a0de10f60ead1398419257fc2efa37a9bc24b3c (diff) | |
download | spack-3752fe9e4249e4467c8ab0badab876a81b186619.tar.gz spack-3752fe9e4249e4467c8ab0badab876a81b186619.tar.bz2 spack-3752fe9e4249e4467c8ab0badab876a81b186619.tar.xz spack-3752fe9e4249e4467c8ab0badab876a81b186619.zip |
Better error message when wrong platform is used (#40492)
fixes #40299
Diffstat (limited to 'lib')
-rw-r--r-- | lib/spack/spack/solver/concretize.lp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/spack/spack/solver/concretize.lp b/lib/spack/spack/solver/concretize.lp index fd3fb94f49..da149dd3fa 100644 --- a/lib/spack/spack/solver/concretize.lp +++ b/lib/spack/spack/solver/concretize.lp @@ -923,7 +923,8 @@ pkg_fact(Package, variant_single_value("dev_path")) %----------------------------------------------------------------------------- % if no platform is set, fall back to the default -:- attr("node_platform", _, Platform), not allowed_platform(Platform). +error(100, "platform '{0}' is not allowed on the current host", Platform) + :- attr("node_platform", _, Platform), not allowed_platform(Platform). attr("node_platform", PackageNode, Platform) :- attr("node", PackageNode), |