watchtower/wtwire/wtwire: fix missed error handling

This commit is contained in:
Conner Fromknecht 2018-12-06 15:49:53 -08:00
parent 45f49899ae
commit 226640aa3c
No known key found for this signature in database
GPG Key ID: E7D737B67FA592C7

@ -148,12 +148,12 @@ func ReadElement(r io.Reader, element interface{}) error {
case *[32]byte:
if _, err := io.ReadFull(r, e[:]); err != nil {
return err
}
case *[33]byte:
if _, err := io.ReadFull(r, e[:]); err != nil {
return err
}
case *[]byte: