channeldb: Fix dropped error in migrations test
channeldb: Fix dropped error and wrap with context channeldb: Fix empty error condition in waitingproof test channeldb: Fix empty error condition in codec channeldb: Wrap error in context
This commit is contained in:
1 parent
e61ec3a46d
commit
2f51ccd10b
4 files changed
+8
-1
No files matched your search
@@ -76,6 +76,7 @@ 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 WriteElement(w, e.PubKey)
|
||||
|
||||
Reference in new issue
Block a user