Error functions reference

The following functions are provided by the package manager for error handling.

Function Details

Displays an error message provided in its argument, and aborts the build process.

In EAPI 6 and later, die can be called under the nonfatal command and with the -n option, in which case it will not abort the build process, but return with non-zero status.

assert Checks the value of the PIPESTATUS array, and calls die if any of its component is non-zero (which indicates failure of the preceding command pipeline).
nonfatal Takes another command as its argument and executes it. If the command fails and would normally die, it returns with non-zero status instead when called under nonfatal.