On Wed, Oct 05, 2005 at 04:33:17PM +0000, Thomas Matthijs wrote:
> Hi,
> 
> I would really like a way to echo more information when a die happens so
> the users can paste it in their bug report
> 
> Only needs a very simple change to ebuild.sh:
> 
EBUILD_DEATH_HOOKS=''

 diefunc() {
        local funcname="$1" lineno="$2" exitcode="$3"
        shift 3
@@ -289,6 +291,7 @@
        echo "!!! ${*:-(no error message)}" >&2
        echo "!!! If you need support, post the topmost build error, NOT this 
status message." >&2
        echo >&2
+       for x in $EBUILD_DEATH_HOOKS; do
+               ${x} "$1" "$2" "$3"
+       done
        exit 1
 }
^^^ something like that I think is a bit better; passing the diefunc 
args to the hooks also.
~harring

Attachment: pgpiX7sVt5WS1.pgp
Description: PGP signature

Reply via email to