From: Zac Medico Date: Thu, 23 Mar 2006 01:27:20 +0000 (-0000) Subject: Include the die call itself (including line number) in the printed call stack when... X-Git-Tag: v2.1_pre7~15 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=4f224ecb5f2bbfcf3384957121b259bc5c9e1fdb;p=portage.git Include the die call itself (including line number) in the printed call stack when an ebuild dies. svn path=/main/trunk/; revision=2972 --- diff --git a/bin/ebuild.sh b/bin/ebuild.sh index 410425d21..991da9dde 100755 --- a/bin/ebuild.sh +++ b/bin/ebuild.sh @@ -247,6 +247,7 @@ diefunc() { echo >&2 echo "!!! ERROR: $CATEGORY/$PF failed." >&2 dump_trace 2 1>&2 + echo " $(basename "${BASH_SOURCE[1]}"), line ${BASH_LINENO[0]}: Called die" 1>&2 echo >&2 echo "!!! ${*:-(no error message)}" >&2 echo "!!! If you need support, post the topmost build error, and the call stack if relevant." >&2