diff options
author | Zac Medico <zmedico@gentoo.org> | 2011-01-30 15:24:48 -0800 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2011-02-02 15:22:48 -0800 |
commit | 669f35b8b80d005e84967527e962bda0e5dbdae2 (patch) | |
tree | 5e5c2eca5e6b349cc4cd29cc543e13dfe5e7c652 /bin | |
parent | cd9be31a243d550166fbb0ee174a35a22e8c5e15 (diff) | |
download | portage-669f35b8b80d005e84967527e962bda0e5dbdae2.tar.gz portage-669f35b8b80d005e84967527e962bda0e5dbdae2.tar.bz2 portage-669f35b8b80d005e84967527e962bda0e5dbdae2.zip |
die: include $EBUILD_PHASE in message
When a helper binary dies automatically in EAPI 4 and later, we don't
get a stack trace, so at least report the phase that failed.
Diffstat (limited to 'bin')
-rw-r--r-- | bin/isolated-functions.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/bin/isolated-functions.sh b/bin/isolated-functions.sh index 8af202f65..f89c11ed5 100644 --- a/bin/isolated-functions.sh +++ b/bin/isolated-functions.sh @@ -136,7 +136,11 @@ die() { (( n-- )) done - eerror "ERROR: $CATEGORY/$PF failed:" + # When a helper binary dies automatically in EAPI 4 and later, we don't + # get a stack trace, so at least report the phase that failed. + local phase_str= + [[ -n $EBUILD_PHASE ]] && phase_str=" ($EBUILD_PHASE phase)" + eerror "ERROR: $CATEGORY/$PF failed${phase_str}:" eerror " ${*:-(no error message)}" eerror # dump_trace is useless when the main script is a helper binary |