summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorChris Green <greenc@fnal.gov>2022-08-11 07:20:17 -0500
committerGitHub <noreply@github.com>2022-08-11 14:20:17 +0200
commit46c8962e915ec056ae876c46e691b26d2d980a9e (patch)
tree9c3372bf8e085063ac36864d31b4363bb836aa17 /lib
parent76d8376fea0c0cfc5c1570fce07e27b0bb5f7af4 (diff)
downloadspack-46c8962e915ec056ae876c46e691b26d2d980a9e.tar.gz
spack-46c8962e915ec056ae876c46e691b26d2d980a9e.tar.bz2
spack-46c8962e915ec056ae876c46e691b26d2d980a9e.tar.xz
spack-46c8962e915ec056ae876c46e691b26d2d980a9e.zip
Add missing info to diagnostic for circular provides (#32027)
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/directives.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/spack/spack/directives.py b/lib/spack/spack/directives.py
index fa04641f38..c7491861eb 100644
--- a/lib/spack/spack/directives.py
+++ b/lib/spack/spack/directives.py
@@ -513,7 +513,7 @@ def provides(*specs, **kwargs):
for string in specs:
for provided_spec in spack.spec.parse(string):
if pkg.name == provided_spec.name:
- raise CircularReferenceError("Package '%s' cannot provide itself.")
+ raise CircularReferenceError("Package '%s' cannot provide itself." % pkg.name)
if provided_spec not in pkg.provided:
pkg.provided[provided_spec] = set()