From 94ceb0355d4f2c6323e78bb6066a3828752b258c Mon Sep 17 00:00:00 2001 From: Geoff Stuart Date: Sat, 23 Apr 2022 21:36:15 +0200 Subject: [PATCH] local worker now returns typed error instead of string --- extern/sector-storage/worker_local.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extern/sector-storage/worker_local.go b/extern/sector-storage/worker_local.go index 9a14e42b5..355915a34 100644 --- a/extern/sector-storage/worker_local.go +++ b/extern/sector-storage/worker_local.go @@ -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)) {