mirror of
https://github.com/go-i2p/goSam.git
synced 2025-06-17 20:29:55 -04:00
Fix a bunch of errors that could potentially happen because of changes I made to the Dialer
This commit is contained in:
@ -17,7 +17,7 @@ func (c *Client) Lookup(name string) (string, error) {
|
||||
|
||||
// TODO: move check into sendCmd()
|
||||
if r.Topic != "NAMING" || r.Type != "REPLY" {
|
||||
return "", fmt.Errorf("Naming Unknown Reply: %+v\n", r)
|
||||
return "", fmt.Errorf("Naming Unknown Reply: %s, %s\n", r.Topic, r.Type)
|
||||
}
|
||||
|
||||
result := r.Pairs["RESULT"]
|
||||
|
Reference in New Issue
Block a user