MCPcopy Create free account
hub / github.com/kataras/iris / getError

Function getError

context/context_func.go:190–203  ·  view source on GitHub ↗
(outputs []reflect.Value)

Source from the content-addressed store, hash-verified

188}
189
190func getError(outputs []reflect.Value) error {
191 if n := len(outputs); n > 0 {
192 lastOut := outputs[n-1]
193 if isError(lastOut.Type()) {
194 if lastOut.IsNil() {
195 return nil
196 }
197
198 return lastOut.Interface().(error)
199 }
200 }
201
202 return nil
203}

Callers 1

callMethod · 0.85

Calls 2

TypeMethod · 0.80
isErrorFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…