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, |
pipestatus |
Checks if all commands in the last executed pipeline have returned an
exit status of zero, and is normally combined with
This command is provided by the package manager in EAPI 9 and later.
In earlier EAPIs, inherit
|
assert |
Checks the value of the PIPESTATUS array, and calls die
if any component is non-zero (which indicates failure of the
preceding command pipeline).
Banned in EAPI 9, use pipestatus instead.
|
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.
|