Skip to content

Commit ea8dd0f

Browse files
committed
Intermediate changes
commit_hash:750c9e900f9b56e84ebbac73a0dd8b987d76cb47
1 parent 95d957b commit ea8dd0f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

library/cpp/protobuf/json/ordered_maps/json2proto_ordered.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ JsonEnum2Field(const NJson::NOrderedJson::TJsonValue& json,
230230
const auto value = json.GetInteger();
231231
enumFieldValue = enumField->FindValueByNumber(value);
232232
if (!enumFieldValue) {
233-
ythrow yexception() << "Invalid integer value of JSON enum field: " << value << ".";
233+
ythrow yexception() << "Invalid integer value of JSON enum field: " << value;
234234
}
235235
} else if (json.IsString()) {
236236
const auto& value = json.GetString();
@@ -246,7 +246,7 @@ JsonEnum2Field(const NJson::NOrderedJson::TJsonValue& json,
246246
}
247247
}
248248
if (!enumFieldValue) {
249-
ythrow yexception() << "Invalid string value of JSON enum field: " << TStringBuf(value).Head(100) << ".";
249+
ythrow yexception() << "Invalid string value of JSON enum field: " << TStringBuf(value).Head(100);
250250
}
251251
} else {
252252
ythrow yexception() << "Invalid type of JSON enum field: not an integer/string.";
@@ -280,7 +280,7 @@ Json2SingleField(const NJson::NOrderedJson::TJsonValue& json,
280280
if (auto fieldJsonType = fieldJson.GetType(); fieldJsonType == NJson::NOrderedJson::JSON_UNDEFINED || fieldJsonType == NJson::NOrderedJson::JSON_NULL) {
281281
if (field.is_required() && !field.has_default_value() && !reflection->HasField(proto, &field) && config.CheckRequiredFields) {
282282
ythrow yexception() << "JSON has no field for required field "
283-
<< name << ".";
283+
<< name;
284284
}
285285
return;
286286
}
@@ -419,7 +419,7 @@ Json2RepeatedFieldValue(const NJson::NOrderedJson::TJsonValue& jsonValue,
419419

420420
default:
421421
ythrow yexception() << "Unknown protobuf field type: "
422-
<< static_cast<int>(field.cpp_type()) << ".";
422+
<< static_cast<int>(field.cpp_type());
423423
}
424424
}
425425

0 commit comments

Comments
 (0)