You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
sledge/runtime/experiments/bash_libraries/error_msg.sh

8 lines
252 B

# shellcheck shell=bash
if [ -n "$__error_msg_sh__" ]; then return; fi
__error_msg_sh__=$(date)
error_msg() {
printf "%.23s %s() at %s:%s - %s\n" "$(date +%F.%T.%N)" "${FUNCNAME[0]}" "$(realpath "${BASH_SOURCE[0]##*/}")" "${BASH_LINENO[0]}" "${@}"
}