add a little bit more verbosity to the error
License: MIT Signed-off-by: Jeromy <why@ipfs.io>
Jeromy committed
Jun 22, 2016 at 10:41 UTC
306f766bb3cf3f5165c7032abeaadc33930d3d3c
1 file changed
+1
-1
merkledag/merkledag.go
+1
-1
@@ -89,7 +89,7 @@ func (n *dagService) Get(ctx context.Context, k key.Key) (*Node, error) {
89
res, err := DecodeProtobuf(b.Data())
90
if err != nil {
91
if strings.Contains(err.Error(), "Unmarshal failed") {
92
- return nil, fmt.Errorf("%s was not a valid merkledag node", k)
92
+ return nil, fmt.Errorf("The block referred to by '%s' was not a valid merkledag node", k)
93
}
94
return nil, fmt.Errorf("Failed to decode Protocol Buffers: %v", err)
95
}