9 lines
135 B
Bash

#!/usr/bin/env bash
error_exit() {
log_error "$1"
exit "${2:-1}"
}
trap 'error_exit "Unerwarteter Fehler in Zeile $LINENO."' ERR