#!/bin/bash # for sending error messages from functions and whatnot ERROR_CODE="$?" >&2 echo "An error occurred within a function in the .zshrc on line number ${1}" return $ERROR_CODE