Logs an error message and immediately exits the process. Use this instead of error() + return when you want to halt execution.
The error message to log before exiting
The process exit code (default: 1)
Logs an error message and immediately exits the process. Use this instead of error() + return when you want to halt execution.