intel / intel/hyperscan

add field error_type (enum) to struct hs_compile_error

Open
#32 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
5.5k
Forks
816
Avg merge
4d 21h
Merged PRs (30d)
2

Description

I want to detect and handle "Pattern is too large" errors. The only option I have now is to look for string "Pattern is too large" in `hs_compile_error.message`, but it is a poor solution. Could you provide a `enum` with error types and add it to `struct hs_compile_error`, please? Description of `hs_compile_error` has a list of possible problems, it can be converted to the `enum`.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.