summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam J. Stewart <ajstewart426@gmail.com>2018-06-02 23:04:36 -0500
committerTodd Gamblin <tgamblin@llnl.gov>2018-06-02 21:04:36 -0700
commitd6458a6ba754f2e64ebd43e0f90632e04feac8fb (patch)
tree6ddf32c1d2315bebde01715115f5b5ae30b2aecb
parentfec11757d5535e3b186069b6b0d2285fc7d054f7 (diff)
downloadspack-d6458a6ba754f2e64ebd43e0f90632e04feac8fb.tar.gz
spack-d6458a6ba754f2e64ebd43e0f90632e04feac8fb.tar.bz2
spack-d6458a6ba754f2e64ebd43e0f90632e04feac8fb.tar.xz
spack-d6458a6ba754f2e64ebd43e0f90632e04feac8fb.zip
Don't duplicate Python error messages (#8270)
-rw-r--r--lib/spack/spack/build_environment.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/spack/spack/build_environment.py b/lib/spack/spack/build_environment.py
index 400589b8a0..db484c12c4 100644
--- a/lib/spack/spack/build_environment.py
+++ b/lib/spack/spack/build_environment.py
@@ -883,8 +883,8 @@ class ChildError(InstallError):
else:
# The error happened in in the Python code, so try to show
# some context from the Package itself.
- out.write('%s: %s\n\n' % (self.name, self.message))
if self.context:
+ out.write('\n')
out.write('\n'.join(self.context))
out.write('\n')