Wrap and return correct error

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
This commit is contained in:
Jakub Sztandera 2019-07-23 20:19:15 +02:00
parent 68cfff17e5
commit 2e6dd1b862

View File

@ -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