Detect thrift error