sd_error
return an error code and log a message
Module:
Component:
Distribution:
Synopsis
sd_error MESSAGE [ERROR_CODE]
Description
logs a MESSAGE with ERROR priority
Exit status
ERROR_CODE (1 by default)
Availability
Since SDaaS 4
Example
<command> || return sd_error "command failed" 3
- return 3 if the program if
returns not 0
Last modified April 5, 2024: feat: added sd_error (c437769)