Unverified Commit a0bd04d3 authored by Łukasz Magiera's avatar Łukasz Magiera Committed by GitHub

Merge pull request #74 from ipfs/feat/wrap-marshal-errors

ipldstore: Also wrap Put serialization errors
parents b8254d07 4a951f33
......@@ -84,7 +84,7 @@ func (s *BasicIpldStore) Put(ctx context.Context, v interface{}) (cid.Cid, error
if ok {
buf := new(bytes.Buffer)
if err := cm.MarshalCBOR(buf); err != nil {
return cid.Undef, err
return cid.Undef, NewSerializationError(err)
}
pref := cid.Prefix{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment