ctc-oss / fapolicy-analyzer

Tools to assist with the configuration and management of fapolicyd.
https://ctc-oss.github.io/fapolicy-analyzer
GNU General Public License v3.0
12 stars 5 forks source link

Rules parse message: Expected one of ... #802

Closed jw3 closed 1 year ago

jw3 commented 1 year ago

The text of a rule syntax error message was apparently a todo and displays as

Expected one of ...

Originates in the Display impl for RuleParseError in rules::parser::error

UnknownSubjectPart(_) | UnknownObjectPart(_) => f.write_str("Expected one of ....."),

Simple fix here is to break those to separate lines and change the message respectively to Expected subject and Expected object