github.com/bhameyie/otto@v0.2.1-0.20160406174117-16052efa52ec/builtin/scriptpack/stdlib/data/error.sh (about) 1 # otto_error is called when an error occurs. The trap is configured 2 # globally from main.sh. 3 otto_error() { 4 local sourcefile=$1 5 local lineno=$2 6 echo "ERROR at ${sourcefile}:${lineno}; Last logs:" 7 grep otto /var/log/syslog | tail -n 20 8 }