aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorarcadia-devtools <arcadia-devtools@yandex-team.ru>2022-04-26 18:03:42 +0300
committerarcadia-devtools <arcadia-devtools@yandex-team.ru>2022-04-26 18:03:42 +0300
commitaa4d5ca8a58e0152eb4495140461f965aec71580 (patch)
treeef25f461ccd182e2c2c3699eef60013b446fb58f /tools
parentaa377121faee8f0891f1eac818549013efbf9fb1 (diff)
downloadydb-aa4d5ca8a58e0152eb4495140461f965aec71580.tar.gz
intermediate changes
ref:583152f672f4b00f4631467dc79a08887cd9a81c
Diffstat (limited to 'tools')
-rw-r--r--tools/enum_parser/parse_enum/parse_enum.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/enum_parser/parse_enum/parse_enum.cpp b/tools/enum_parser/parse_enum/parse_enum.cpp
index 3db0d7a4d9..80c5498ab7 100644
--- a/tools/enum_parser/parse_enum/parse_enum.cpp
+++ b/tools/enum_parser/parse_enum/parse_enum.cpp
@@ -405,7 +405,9 @@ void TEnumParser::Parse(const char* data, size_t length) {
const bool isFlatbuffersHeader = span.Contains("// automatically generated by the FlatBuffers compiler");
Y_ENSURE(
hasPragmaOnce || isProtobufHeader || isFlatbuffersHeader,
- "Serialization functions can be generated only for enums in header files, see SEARCH-975. "
+ "Serialization functions can be generated only for enums in header files. "
+ "A valid header should either contain `#pragma once` or be an protobuf/flatbuf autogenerated header file. "
+ "See SEARCH-975 for more information. "
);
TCppContext cppContext(data, SourceFileName);
TMemoryInput in(data, length);