mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-07 03:06:01 +02:00
multi: wrap all errors
This commit is contained in:
committed by
Andras Banki-Horvath
parent
9a28a4c105
commit
648fb22f63
@@ -91,7 +91,7 @@ func (l *Listener) listen() {
|
||||
// rejectedConnErr is a helper function that prepends the remote address of the
|
||||
// failed connection attempt to the original error message.
|
||||
func rejectedConnErr(err error, remoteAddr string) error {
|
||||
return fmt.Errorf("unable to accept connection from %v: %v", remoteAddr,
|
||||
return fmt.Errorf("unable to accept connection from %v: %w", remoteAddr,
|
||||
err)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user