Err handle
This commit is contained in:
parent
7383a761f6
commit
14d921f64f
@ -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
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user