summaryrefslogtreecommitdiff
path: root/lib/haxe
diff options
context:
space:
mode:
authorJens Geyer <jensg@apache.org>2017-01-10 21:57:48 +0100
committerJens Geyer <jensg@apache.org>2017-01-11 20:50:38 +0100
commit5f723cd53980f395a92c438790a127cbd5699d90 (patch)
treedced9178d553251f180c29b4c10197cd55267445 /lib/haxe
parent4f710aa4f47e051d41c863aa7aa9239dab5b9636 (diff)
downloadthrift-5f723cd53980f395a92c438790a127cbd5699d90.tar.gz
THRIFT-4024 Skip() should throw on unknown data types
Client: C#, NETCore, Haxe, Delphi, Go Patch: Jens Geyer This closes #1155
Diffstat (limited to 'lib/haxe')
-rw-r--r--lib/haxe/src/org/apache/thrift/protocol/TProtocolUtil.hx2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/haxe/src/org/apache/thrift/protocol/TProtocolUtil.hx b/lib/haxe/src/org/apache/thrift/protocol/TProtocolUtil.hx
index 1ec59d2cf..001e40564 100644
--- a/lib/haxe/src/org/apache/thrift/protocol/TProtocolUtil.hx
+++ b/lib/haxe/src/org/apache/thrift/protocol/TProtocolUtil.hx
@@ -95,7 +95,7 @@ class TProtocolUtil {
prot.readListEnd();
default:
- trace("Unknown field type ",type," in skipMaxDepth()");
+ throw new TProtocolException(TProtocolException.UNKNOWN, "Unknown field type ${type}");
}
prot.DecrementRecursionDepth();