mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-04 10:42:25 +02:00
multi: wrap all errors
This commit is contained in:
committed by
Andras Banki-Horvath
parent
9a28a4c105
commit
648fb22f63
@@ -226,7 +226,7 @@ func (b *Batcher) BatchFund(ctx context.Context,
|
||||
"chan ID")
|
||||
}
|
||||
} else if _, err := rand.Read(pendingChanID[:]); err != nil {
|
||||
return nil, fmt.Errorf("error making temp chan ID: %v",
|
||||
return nil, fmt.Errorf("error making temp chan ID: %w",
|
||||
err)
|
||||
}
|
||||
|
||||
@@ -265,7 +265,7 @@ func (b *Batcher) BatchFund(ctx context.Context,
|
||||
},
|
||||
})
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("error parsing channel %d: %v",
|
||||
return nil, fmt.Errorf("error parsing channel %d: %w",
|
||||
idx, err)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user