improve thrift error message