MCPcopy Create free account
hub / github.com/dagger/dagger / findSingleGQLError

Function findSingleGQLError

sdk/python/runtime/dagger.gen.go:170–181  ·  view source on GitHub ↗
(rerr error)

Source from the content-addressed store, hash-verified

168}
169
170func findSingleGQLError(rerr error) *gqlerror.Error {
171 switch x := rerr.(type) {
172 case *gqlerror.Error:
173 return x
174 case interface{ Unwrap() []error }:
175 return nil
176 case interface{ Unwrap() error }:
177 return findSingleGQLError(x.Unwrap())
178 default:
179 return nil
180 }
181}
182func dispatch(ctx context.Context) (rerr error) {
183 ctx = telemetry.InitEmbedded(ctx, resource.NewWithAttributes(
184 semconv.SchemaURL,

Callers 1

convertErrorFunction · 0.70

Calls 1

UnwrapMethod · 0.65

Tested by

no test coverage detected