Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
LU-1199 lbuild: Fix error handling
Improper grouping of expressions in the error() function meant that even a simple "lbuild -h" would trigger a backtrace, and email to someone at whamcloud.com. That is fixed here. Also stop sending email to a static email address on errors. Also fix a minor typo. Change-Id: I5a3f6131baaadc9dba23414e9e959f72fbda2679 Signed-off-by: Christopher J. Morrone <morrone2@llnl.gov>
- Loading branch information
Showing
2 changed files
with
5 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The real bug is right here. A fatal error (or non-error exit) has been detected. Thus it is caught, not uncaught. Therefore, disable the "uncaught error trap" at this point, via:
trap '' ERR
I will send you a more comprehensive patch in a few days, when it is polished. Thanks!