We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5e581ee + 90e03d2 commit 3b5ddcdCopy full SHA for 3b5ddcd
id.go
@@ -1,7 +1,7 @@
1
package graphql
2
3
import (
4
- "errors"
+ "fmt"
5
"strconv"
6
)
7
@@ -20,7 +20,7 @@ func (id *ID) UnmarshalGraphQL(input interface{}) error {
20
case int32:
21
*id = ID(strconv.Itoa(int(input)))
22
default:
23
- err = errors.New("wrong type")
+ err = fmt.Errorf("wrong type for ID: %T", input)
24
}
25
return err
26
time.go
@@ -41,7 +41,7 @@ func (t *Time) UnmarshalGraphQL(input interface{}) error {
41
t.Time = time.Unix(int64(input), 0)
42
return nil
43
44
- return fmt.Errorf("wrong type")
+ return fmt.Errorf("wrong type for Time: %T", input)
45
46
47
0 commit comments