trap 'echo Error at about $LINENO' ERR

or

traperr() {
    echo "ERROR: ${BASH\_SOURCE[1]} at about ${BASH\_LINENO[0]}"
}
set -o errtrace
trap traperr ERR
Comments