dotfiles/.config/shell/bin/error
PowerUser64 06ab216290 zsh: realized some things need to be functions
By that, I mean things that change my working directory need to be
functions
2022-01-01 18:24:20 -08:00

8 lines
159 B
Bash
Executable file

#!/bin/bash
# for sending error messages from functions and whatnot
ERROR_CODE="$?"
>&2 echo "$0: An error occurred on line number ${1}"
return $ERROR_CODE