From 42608a035615d89dfd4ea7e8543d1f847d72bbb3 Mon Sep 17 00:00:00 2001 From: Richard Musiol Date: Wed, 22 Mar 2017 15:30:29 +0100 Subject: [PATCH] clean up now unnecessary check --- internal/exec/exec.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/internal/exec/exec.go b/internal/exec/exec.go index b5db3bf46d1..db0795c9e1f 100644 --- a/internal/exec/exec.go +++ b/internal/exec/exec.go @@ -563,10 +563,7 @@ func (e *objectExec) execField(ctx context.Context, r *request, f *query.Field, addResult(fieldAlias, introspectType(ctx, r, v.String(), f.SelSet)) default: - fe, ok := e.fields[fieldName] - if !ok { - panic(fmt.Errorf("%q has no field %q", e.name, fieldName)) // TODO proper error handling - } + fe := e.fields[fieldName] span, spanCtx := opentracing.StartSpanFromContext(ctx, fmt.Sprintf("GraphQL field: %s.%s", fe.typeName, fe.field.Name)) defer span.Finish()