Predicate isReturnedWithError
Holds if node
refers to a value returned alongside a non-nil error value.
For example, 0
in func tryGetInt() (int, error) { return 0, errors.New("no good") }
Import path
import semmle.go.dataflow.internal.DataFlowUtil
predicate isReturnedWithError(Node node)