github.com/dahs81/otto@v0.2.1-0.20160126165905-6400716cf085/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  }