summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2006-03-23 01:27:20 +0000
committerZac Medico <zmedico@gentoo.org>2006-03-23 01:27:20 +0000
commit4f224ecb5f2bbfcf3384957121b259bc5c9e1fdb (patch)
tree45a793b05d9ffbb9208785d4230712d3879625cf
parent1d304d0ab4e041092a447182f0a33a3129c8d215 (diff)
downloadportage-4f224ecb5f2bbfcf3384957121b259bc5c9e1fdb.tar.gz
portage-4f224ecb5f2bbfcf3384957121b259bc5c9e1fdb.tar.bz2
portage-4f224ecb5f2bbfcf3384957121b259bc5c9e1fdb.zip
Include the die call itself (including line number) in the printed call stack when an ebuild dies.
svn path=/main/trunk/; revision=2972
-rwxr-xr-xbin/ebuild.sh1
1 files changed, 1 insertions, 0 deletions
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