Add error back in when from thrift