diff --git a/api/cbor_gen.go b/api/cbor_gen.go index 3b1bea712..fd244cdb5 100644 --- a/api/cbor_gen.go +++ b/api/cbor_gen.go @@ -181,6 +181,7 @@ func (t *PaymentInfo) UnmarshalCBOR(r io.Reader) error { } default: + return fmt.Errorf("unknown struct field %d: '%s'", i, name) } } @@ -310,6 +311,7 @@ func (t *SealedRef) UnmarshalCBOR(r io.Reader) error { t.Size = uint64(extra) default: + return fmt.Errorf("unknown struct field %d: '%s'", i, name) } } @@ -410,6 +412,7 @@ func (t *SealedRefs) UnmarshalCBOR(r io.Reader) error { } default: + return fmt.Errorf("unknown struct field %d: '%s'", i, name) } } diff --git a/go.mod b/go.mod index cc9f1d9c1..914691b7f 100644 --- a/go.mod +++ b/go.mod @@ -86,7 +86,7 @@ require ( github.com/prometheus/common v0.2.0 github.com/stretchr/testify v1.4.0 github.com/whyrusleeping/bencher v0.0.0-20190829221104-bb6607aa8bba - github.com/whyrusleeping/cbor-gen v0.0.0-20200121160201-1834514787d2 + github.com/whyrusleeping/cbor-gen v0.0.0-20200121162646-b63bacf5eaf8 github.com/whyrusleeping/multiaddr-filter v0.0.0-20160516205228-e903e4adabd7 github.com/whyrusleeping/pubsub v0.0.0-20131020042734-02de8aa2db3d go.opencensus.io v0.22.2 diff --git a/go.sum b/go.sum index 1d36c637c..47f2659a5 100644 --- a/go.sum +++ b/go.sum @@ -711,8 +711,8 @@ github.com/whyrusleeping/cbor-gen v0.0.0-20190917003517-d78d67427694/go.mod h1:x github.com/whyrusleeping/cbor-gen v0.0.0-20191116002219-891f55cd449d/go.mod h1:xdlJQaiqipF0HW+Mzpg7XRM3fWbGvfgFlcppuvlkIvY= github.com/whyrusleeping/cbor-gen v0.0.0-20191212224538-d370462a7e8a/go.mod h1:xdlJQaiqipF0HW+Mzpg7XRM3fWbGvfgFlcppuvlkIvY= github.com/whyrusleeping/cbor-gen v0.0.0-20191216205031-b047b6acb3c0/go.mod h1:xdlJQaiqipF0HW+Mzpg7XRM3fWbGvfgFlcppuvlkIvY= -github.com/whyrusleeping/cbor-gen v0.0.0-20200121160201-1834514787d2 h1:VwJlCmEiu+/sl5KUq5w4i5VrhTIAhI++GVHGWf+vGnc= -github.com/whyrusleeping/cbor-gen v0.0.0-20200121160201-1834514787d2/go.mod h1:xdlJQaiqipF0HW+Mzpg7XRM3fWbGvfgFlcppuvlkIvY= +github.com/whyrusleeping/cbor-gen v0.0.0-20200121162646-b63bacf5eaf8 h1:PHZv8Nu+95MBVNu3qSgg3ncxIv8hy4DzGAOBR9xYQRc= +github.com/whyrusleeping/cbor-gen v0.0.0-20200121162646-b63bacf5eaf8/go.mod h1:xdlJQaiqipF0HW+Mzpg7XRM3fWbGvfgFlcppuvlkIvY= github.com/whyrusleeping/chunker v0.0.0-20181014151217-fe64bd25879f h1:jQa4QT2UP9WYv2nzyawpKMOCl+Z/jW7djv2/J50lj9E= github.com/whyrusleeping/chunker v0.0.0-20181014151217-fe64bd25879f/go.mod h1:p9UJB6dDgdPgMJZs7UjUOdulKyRr9fqkS+6JKAInPy8= github.com/whyrusleeping/go-keyspace v0.0.0-20160322163242-5b898ac5add1 h1:EKhdznlJHPMoKr0XTrX+IlJs1LH3lyx2nfr1dOlZ79k= diff --git a/lib/statemachine/cbor_gen.go b/lib/statemachine/cbor_gen.go index e32e81697..394be1e72 100644 --- a/lib/statemachine/cbor_gen.go +++ b/lib/statemachine/cbor_gen.go @@ -109,6 +109,7 @@ func (t *TestState) UnmarshalCBOR(r io.Reader) error { t.B = uint64(extra) default: + return fmt.Errorf("unknown struct field %d: '%s'", i, name) } } @@ -218,6 +219,7 @@ func (t *TestEvent) UnmarshalCBOR(r io.Reader) error { t.Val = uint64(extra) default: + return fmt.Errorf("unknown struct field %d: '%s'", i, name) } } diff --git a/storage/sealing/cbor_gen.go b/storage/sealing/cbor_gen.go index 61ad5b606..1e48bc7d5 100644 --- a/storage/sealing/cbor_gen.go +++ b/storage/sealing/cbor_gen.go @@ -123,6 +123,7 @@ func (t *SealTicket) UnmarshalCBOR(r io.Reader) error { } default: + return fmt.Errorf("unknown struct field %d: '%s'", i, name) } } @@ -239,6 +240,7 @@ func (t *SealSeed) UnmarshalCBOR(r io.Reader) error { } default: + return fmt.Errorf("unknown struct field %d: '%s'", i, name) } } @@ -382,6 +384,7 @@ func (t *Piece) UnmarshalCBOR(r io.Reader) error { } default: + return fmt.Errorf("unknown struct field %d: '%s'", i, name) } } @@ -914,6 +917,7 @@ func (t *SectorInfo) UnmarshalCBOR(r io.Reader) error { } default: + return fmt.Errorf("unknown struct field %d: '%s'", i, name) } }