Err handle

This commit is contained in:
zenground0 2023-01-17 09:56:17 -07:00
parent 7383a761f6
commit 14d921f64f

View File

@ -44,7 +44,9 @@ var cborCid = &cli.Command{
}
cbgc := cbg.CborCid(c)
buf := bytes.NewBuffer(make([]byte, 0))
cbgc.MarshalCBOR(buf)
if err := cbgc.MarshalCBOR(buf); err != nil {
return err
}
fmt.Printf("%x\n", buf.Bytes())
return nil
},