Skip to content

Commit bc6d614

Browse files
andylou2tfx-copybara
authored andcommitted
Print field value if failed to parse in decode_proto_sparse.
PiperOrigin-RevId: 384504392
1 parent ce9cff0 commit bc6d614

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

struct2tensor/kernels/decode_proto_sparse_op.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ class FieldBuilderImpl : public FieldBuilder {
378378
Status CollectValue(CodedInputStream* input, int64_t message_index) {
379379
T value;
380380
if (!ReadFieldValue<T, DataType>(input, &value)) {
381-
return DataLoss("Failed to parse field.");
381+
return DataLoss("Failed to parse field: ", value);
382382
}
383383
if (is_repeated_ || parent_indices_.empty() ||
384384
parent_indices_.back() != message_index) {

0 commit comments

Comments
 (0)