
emit_error() — emit an error-code (numeric) to the frontend
emit_error [error-code] [description] echodescription| emit_error [error-code]
emit_error() writes the error to stderr in the following format:
<acritoxinstaller backend error>error-codedescription
If no error-code and description is supplied then the error "255 unknown" is emitted.
emit_error() always returns non-zero, so that it can be used like this:
some_function_call || emit_error 1 "Error!" || return
Would you like to make a comment or contribute an update to this page?
Send feedback to the KDE Docs Team