From 46c8962e915ec056ae876c46e691b26d2d980a9e Mon Sep 17 00:00:00 2001 From: Chris Green Date: Thu, 11 Aug 2022 07:20:17 -0500 Subject: [PATCH] Add missing info to diagnostic for circular provides (#32027) --- lib/spack/spack/directives.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 _execute_provides(pkg): 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()