X-Git-Url: http://www.git.cypherpunks.ru/?a=blobdiff_plain;f=src%2Fnode.go;h=b2a598546d54b72e41c1fbc05f601a227b6c964c;hb=1b001e3dc76b6950f6170a1b2f01bf9c50d230ef;hp=f5bea183cce561b972dc009f4d440a0479082d0e;hpb=59d163885aba53b641f19565317f19d88dcd56dd;p=nncp.git diff --git a/src/node.go b/src/node.go index f5bea18..b2a5985 100644 --- a/src/node.go +++ b/src/node.go @@ -20,6 +20,7 @@ package nncp import ( "crypto/rand" "errors" + "fmt" "sync" "time" @@ -114,7 +115,7 @@ func (nodeOur *NodeOur) Their() *Node { func NodeIdFromString(raw string) (*NodeId, error) { decoded, err := Base32Codec.DecodeString(raw) if err != nil { - return nil, err + return nil, fmt.Errorf("Can not parse node: %s: %s", raw, err) } if len(decoded) != blake2b.Size256 { return nil, errors.New("Invalid node id size")