Error functions reference
The following functions are provided by the package manager for error handling.
Function | Details |
---|---|
die |
Displays an error message provided in its argument, and aborts the build process.
In EAPI 6 and later, |
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 .
|