Add error message for ERROR_UNSUPPORTED_FILE_VERSION

parent 99b36152
...@@ -936,6 +936,11 @@ PyObject* handle_error( ...@@ -936,6 +936,11 @@ PyObject* handle_error(
YaraError, YaraError,
"external variable \"%s\" was already defined with a different type", "external variable \"%s\" was already defined with a different type",
extra); extra);
case ERROR_UNSUPPORTED_FILE_VERSION:
return PyErr_Format(
YaraError,
"rules file \"%s\" is incompatible with this version of YARA",
extra);
default: default:
return PyErr_Format( return PyErr_Format(
YaraError, YaraError,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment