spack load nonExistingPackage
does not return a non-zero return code to bash.
A non-zero return code and a message that the package does not exist
Zero return code and no message.
$ spack bootstrap
# default tcl modules
$ spack load nonExistingPackage
Debian 9.2
Spack 8ae50ae8b
ccing @alalazo
I took a stab at this (feels like ages ago) and didn't come too far, but maybe it helps as a starting point #3827
Duplicate of #2570