fn: sgnd_die
Purpose
Print a failure message and exit the script.
Description
Includes a stack trace in verbose mode; otherwise includes a caller reference.
Arguments
$1— Optional message.$2— Exit code (default 1).
Side effects
Logs the error and terminates the process.
Returns
Does not return; exits with the requested status.
Usage
sgnd_die "Unable to continue" 1
