SuccessOrDie macro
Checks for the specified error code, which is expected to commonly be successful, and both records exit status and terminates the program if the error code is unsuccessful.
Arguments
aError
An error code to be evaluated against OT_ERROR_NONE.