Note that checking for errors can be expensive because it checks ALL child nodes within a node and then tries to do a string match for the errors being looked for. This is why such error checking is part of a standalone function and not done during the cooking step.
Usage ¶
checkForSpecificErrors(session
: hapi.Session, node_id
: int
, errors_to_look_for
: int
) → int
Recursively check for specific errors by error code on a node.
session
The session of Houdini you are interacting with. See hapi.Session for more on sessions. Pass None to just use the default in-process session.
node_id
The node id.
errors_to_look_for
The hapi.errorCode error codes (as a bitfield) to look for.
Returns errors_found as a int
.