From 2ebdc234f035e14d15091081952d70fba472b967 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Fri, 13 Aug 2010 09:37:15 -0700 Subject: Disable the die() stack trace when called by the die helper. --- bin/isolated-functions.sh | 3 +++ 1 file changed, 3 insertions(+) (limited to 'bin/isolated-functions.sh') diff --git a/bin/isolated-functions.sh b/bin/isolated-functions.sh index 14ba58cc8..24adb697d 100644 --- a/bin/isolated-functions.sh +++ b/bin/isolated-functions.sh @@ -113,6 +113,8 @@ die() { eerror "ERROR: $CATEGORY/$PF failed:" eerror " ${*:-(no error message)}" eerror + # This part is useless when called by the die helper. + if [[ ${BASH_SOURCE[1]##*/} != die ]] ; then dump_trace 2 ${filespacing} ${linespacing} eerror " $(printf "%${filespacing}s" "${BASH_SOURCE[1]##*/}"), line $(printf "%${linespacing}s" "${BASH_LINENO[0]}"): Called die" eerror "The specific snippet of code:" @@ -138,6 +140,7 @@ die() { | sed -e '1d' -e 's:^:RETAIN-LEADING-SPACE:' \ | while read -r n ; do eerror " ${n#RETAIN-LEADING-SPACE}" ; done eerror + fi eerror "If you need support, post the output of 'emerge --info =$CATEGORY/$PF'," eerror "the complete build log and the output of 'emerge -pqv =$CATEGORY/$PF'." if [[ -n ${EBUILD_OVERLAY_ECLASSES} ]] ; then -- cgit v1.2.3-1-g7c22