diff options
author | James E. King III <jking@apache.org> | 2019-02-14 16:46:38 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-14 16:46:38 -0500 |
commit | dbc1f8def5018ce5d85d38b9875c6c6b6b424478 (patch) | |
tree | 0011127f2edd9221f973eb157438bbd11c0b74d2 /lib/swift | |
parent | 3ca88065dfdb24c5bad6fbd1e3a7e01812628d3b (diff) | |
download | thrift-dbc1f8def5018ce5d85d38b9875c6c6b6b424478.tar.gz |
THRIFT-4024, THRIFT-4783: throw when skipping invalid type (#1742)
* THRIFT-4024: make c_glib throw on unsupported type when skipping
* THRIFT-4783: throw on invalid skip (py)
* THRIFT-4024: make cpp throw on unsupported type when skipping
* THRIFT-4024: uniform skip behavior on unsupported type
Diffstat (limited to 'lib/swift')
-rw-r--r-- | lib/swift/Sources/TProtocol.swift | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/swift/Sources/TProtocol.swift b/lib/swift/Sources/TProtocol.swift index a4e4a20fa..b111e71bb 100644 --- a/lib/swift/Sources/TProtocol.swift +++ b/lib/swift/Sources/TProtocol.swift @@ -175,8 +175,9 @@ public extension TProtocol { try skip(type: elemType) } try readListEnd() + default: - return + throw TProtocolError(error: .invalidData, message: "Invalid data") } } } |