THRIFT-1973: Compact protocol errors

Client: C#
Patch: Eric Ding