mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-06 17:47:01 +02:00
multi: wrap all errors
This commit is contained in:
committed by
Andras Banki-Horvath
parent
9a28a4c105
commit
648fb22f63
@@ -83,7 +83,8 @@ func WriteElement(w io.Writer, element interface{}) error {
|
||||
|
||||
if e.PubKey != nil {
|
||||
if err := binary.Write(w, byteOrder, true); err != nil {
|
||||
return fmt.Errorf("error writing serialized element: %s", err)
|
||||
return fmt.Errorf("error writing serialized "+
|
||||
"element: %w", err)
|
||||
}
|
||||
|
||||
return WriteElement(w, e.PubKey)
|
||||
|
@@ -81,7 +81,8 @@ func WriteElement(w io.Writer, element interface{}) error {
|
||||
|
||||
if e.PubKey != nil {
|
||||
if err := binary.Write(w, byteOrder, true); err != nil {
|
||||
return fmt.Errorf("error writing serialized element: %s", err)
|
||||
return fmt.Errorf("error writing serialized "+
|
||||
"element: %w", err)
|
||||
}
|
||||
|
||||
return WriteElement(w, e.PubKey)
|
||||
|
Reference in New Issue
Block a user