Include the die call itself (including line number) in the printed call stack when...
authorZac Medico <zmedico@gentoo.org>
Thu, 23 Mar 2006 01:27:20 +0000 (01:27 -0000)
committerZac Medico <zmedico@gentoo.org>
Thu, 23 Mar 2006 01:27:20 +0000 (01:27 -0000)
svn path=/main/trunk/; revision=2972

bin/ebuild.sh

index 410425d219294c23d4b0b0908b822ad911786a1c..991da9ddeba526db9c79d1ff5fc872e2738c2bc8 100755 (executable)
@@ -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