mirror of
https://github.com/waku-org/go-multiaddr.git
synced 2025-02-23 11:38:20 +00:00
err correction
This commit is contained in:
parent
32d9d68b64
commit
0d7b54ba43
2
codec.go
2
codec.go
@ -33,7 +33,7 @@ func stringToBytes(s string) ([]byte, error) {
|
||||
|
||||
if p.Size > 0 {
|
||||
if len(sp) < 1 {
|
||||
return nil, fmt.Errorf("protocol requires address, none given: %s", sp)
|
||||
return nil, fmt.Errorf("protocol requires address, none given: %s", p.Name)
|
||||
}
|
||||
a, err := addressStringToBytes(p, sp[0])
|
||||
if err != nil {
|
||||
|
Loading…
x
Reference in New Issue
Block a user