Wrap and return correct error
License: MIT Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
This commit is contained in:
parent
68cfff17e5
commit
2e6dd1b862
@ -67,7 +67,7 @@ func (sma StorageMarketActor) CreateStorageMiner(act *types.Actor, vmctx types.V
|
||||
|
||||
naddr, nerr := address.NewFromBytes(ret)
|
||||
if nerr != nil {
|
||||
return nil, err
|
||||
return nil, aerrors.Absorb(nerr, 1, "could not read address of new actor")
|
||||
}
|
||||
|
||||
var self StorageMarketState
|
||||
|
Loading…
Reference in New Issue
Block a user