sd_abort

log a critical error and exit SDaaS

Synopsis

sd_abort [MESSAGE]

Description

logs a MESSAGE for critical error and exit from the caller

Exit status

Exits 0 on success, and 2 if an error occurs.

Availability

Since SDaaS 4

Example

sd_abort "command failed"
abort the program logging the error message “command failed”
<command> || sd_abort "command failed"
abort the program if returns not 0
Last modified February 4, 2024: First commit for 4.0 (619a40d)