Skip to content

Commit

Permalink
return proper error
Browse files Browse the repository at this point in the history
  • Loading branch information
sijad committed Jun 24, 2020
1 parent e408249 commit d1ec6a2
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions builder/builder.go
Expand Up @@ -109,11 +109,8 @@ func (g *gqlBuilder) ImportType(name *string, t types.Type, nilAble bool) (*intr
Kind: introspection.SCALAR,
Name: &name,
}, nilAble), nil
case *types.Struct:
fmt.Println(x)
return nil, nil
default:
panic(fmt.Sprintf("%T not implimented", x))
return nil, errors.New("not implimented")
}
}

Expand Down

0 comments on commit d1ec6a2

Please sign in to comment.