Skip to content

Commit 1888aa7

Browse files
committed
Another nodiscard from protobuf
1 parent 6f473bf commit 1888aa7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cpp/src/arrow/flight/sql/server.cc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,9 @@ arrow::Result<std::string> CreateStatementQueryTicket(
537537
ticket_statement_query.set_statement_handle(statement_handle);
538538

539539
google::protobuf::Any ticket;
540-
ticket.PackFrom(ticket_statement_query);
540+
if (!ticket.PackFrom(ticket_statement_query)) {
541+
return Status::Invalid("Unable to pack ticket");
542+
}
541543

542544
std::string ticket_string;
543545

0 commit comments

Comments
 (0)