diff options
-rw-r--r-- | lib/spack/spack/spec.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/spack/spack/spec.py b/lib/spack/spack/spec.py index 4f84104f84..91d66483da 100644 --- a/lib/spack/spack/spec.py +++ b/lib/spack/spack/spec.py @@ -2053,8 +2053,14 @@ class Spec(object): try: dep.merge(dependency) except UnsatisfiableSpecError as e: - e.message = ("Conflicting conditional dependencies on" - "package %s for spec %s" % (self.name, self)) + e.message = ( + "Conflicting conditional dependencies for spec" + "\n\n\t{0}\n\n" + "Cannot merge constraint" + "\n\n\t{1}\n\n" + "into" + "\n\n\t{2}" + .format(self, dependency.spec, dep.spec)) raise e return dep |