Skip to content

Commit

Permalink
local worker now returns typed error instead of string
Browse files Browse the repository at this point in the history
  • Loading branch information
geoff-vball committed May 2, 2022
1 parent 00015a2 commit 94ceb03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extern/sector-storage/worker_local.go
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ func (l *LocalWorker) asyncCall(ctx context.Context, sector storage.SectorRef, r
log.Errorf("get hostname err: %+v", err)
}

err = xerrors.Errorf("%w [Hostname: %s]", err.Error(), hostname)
err = xerrors.Errorf("%w [Hostname: %s]", err, hostname)
}

if doReturn(ctx, rt, ci, l.ret, res, toCallError(err)) {
Expand Down

0 comments on commit 94ceb03

Please sign in to comment.