Commit 4a951f33 authored by Łukasz Magiera's avatar Łukasz Magiera

ipldstore: Also wrap Put serialization errors

parent b8254d07
......@@ -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