[thrift] add missing return values