Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
go-libp2p
Commits
555afdb8
Commit
555afdb8
authored
6 years ago
by
Steven Allen
Browse files
Options
Download
Email Patches
Plain Diff
improve error message in libp2p reflection-based transport option
parent
a08d9e63
master
2018-Q4-OKR
feat/protobuf
fix/473
fix/no-custom-field
fix/reset-ping-stream
fix/revert-correct-external-addr
gx/update-nza0mn
multistream-ping
punching
v6.0.23
v6.0.22
v6.0.21
v6.0.20
v6.0.19
v6.0.18
v6.0.17
v6.0.16
v6.0.15
v6.0.14
v6.0.13
v6.0.12
v6.0.11
v6.0.10
v6.0.9
v6.0.8
v6.0.7
v6.0.6
v6.0.5
v6.0.4
v6.0.3
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
config/reflection_magic.go
+1
-1
config/reflection_magic.go
with
1 addition
and
1 deletion
+1
-1
config/reflection_magic.go
View file @
555afdb8
...
...
@@ -23,7 +23,7 @@ func checkReturnType(fnType, tptType reflect.Type) error {
fallthrough
case
1
:
if
!
fnType
.
Out
(
0
)
.
Implements
(
tptType
)
{
return
fmt
.
Errorf
(
"
expected first return value from transport constructor to be a transport"
)
return
fmt
.
Errorf
(
"
transport constructor returns %s which doesn't implement %s"
,
fnType
.
Out
(
0
),
tptType
)
}
default
:
return
fmt
.
Errorf
(
"expected transport constructor to return a transport and, optionally, an error"
)
...
...
This diff is collapsed.
Click to expand it.
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
Menu
Projects
Groups
Snippets
Help