From 4f224ecb5f2bbfcf3384957121b259bc5c9e1fdb Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Thu, 23 Mar 2006 01:27:20 +0000 Subject: Include the die call itself (including line number) in the printed call stack when an ebuild dies. svn path=/main/trunk/; revision=2972 --- bin/ebuild.sh | 1 + 1 file changed, 1 insertion(+) (limited to 'bin/ebuild.sh') 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 -- cgit v1.2.3-1-g7c22