Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张蕾
Geth-Modification
Commits
72e62efc
Commit
72e62efc
authored
Nov 21, 2019
by
Felix Lange
Committed by
Péter Szilágyi
Nov 21, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
common/hexutil: improve GraphQL error messages (#20353)
parent
f56f969d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
json.go
common/hexutil/json.go
+3
-3
No files found.
common/hexutil/json.go
View file @
72e62efc
...
...
@@ -86,7 +86,7 @@ func (b *Bytes) UnmarshalGraphQL(input interface{}) error {
}
*
b
=
data
default
:
err
=
fmt
.
Errorf
(
"
Unexpected type for Bytes: %v
"
,
input
)
err
=
fmt
.
Errorf
(
"
unexpected type %T for Bytes
"
,
input
)
}
return
err
}
...
...
@@ -220,7 +220,7 @@ func (b *Big) UnmarshalGraphQL(input interface{}) error {
num
.
SetInt64
(
int64
(
input
))
*
b
=
Big
(
num
)
default
:
err
=
fmt
.
Errorf
(
"
Unexpected type for BigInt: %v
"
,
input
)
err
=
fmt
.
Errorf
(
"
unexpected type %T for BigInt
"
,
input
)
}
return
err
}
...
...
@@ -284,7 +284,7 @@ func (b *Uint64) UnmarshalGraphQL(input interface{}) error {
case
int32
:
*
b
=
Uint64
(
input
)
default
:
err
=
fmt
.
Errorf
(
"
Unexpected type for Long: %v
"
,
input
)
err
=
fmt
.
Errorf
(
"
unexpected type %T for Long
"
,
input
)
}
return
err
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment