Improved package.py error handling. (#2187)
- Detailed debug information is now handed back to the parent process from builds, for *any* type of exception. - previously this only worked for Spack ProcessErrors, but now it works for any type of error raised in a child. - Spack will print an error message and source code context for build errors by default. - It will print a stack trace when using `spack -d`, even when the error occurred in the child process.
Showing
- lib/spack/spack/build_environment.py 146 additions, 9 deletionslib/spack/spack/build_environment.py
- lib/spack/spack/error.py 19 additions, 7 deletionslib/spack/spack/error.py
- lib/spack/spack/package.py 53 additions, 55 deletionslib/spack/spack/package.py
- lib/spack/spack/util/executable.py 1 addition, 92 deletionslib/spack/spack/util/executable.py
Loading
Please register or sign in to comment