aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/regex/hyperscan/hyperscan.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'library/cpp/regex/hyperscan/hyperscan.cpp')
-rw-r--r--library/cpp/regex/hyperscan/hyperscan.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/library/cpp/regex/hyperscan/hyperscan.cpp b/library/cpp/regex/hyperscan/hyperscan.cpp
index d431f87398..ba85e9bbab 100644
--- a/library/cpp/regex/hyperscan/hyperscan.cpp
+++ b/library/cpp/regex/hyperscan/hyperscan.cpp
@@ -273,6 +273,8 @@ namespace NHyperscan {
if (status != HS_SUCCESS) {
if (status == HS_DB_PLATFORM_ERROR) {
ythrow yexception() << "Serialized Hyperscan database is incompatible with current CPU";
+ } else if (status == HS_DB_VERSION_ERROR) {
+ ythrow yexception() << "Need recreate Hyperscan database with new version Hyperscan";
} else {
ythrow yexception() << "Failed to deserialize hyperscan database (status = " << status << ")";
}