falco/userspace/engine/rule_loading_messages.h
Poiana 50b98b30e5 chore(falco): apply code formatting
Signed-off-by: Poiana <poiana.bot@gmail.com>
2024-09-30 13:25:31 +02:00

34 lines
1.3 KiB
C

#pragma once
////////////////
// Warnings
////////////////
#define WARNING_APPEND \
"'append' key is deprecated. Add an 'append' entry (e.g. 'condition: append') under " \
"'override' instead."
#define WARNING_ENABLED \
"The standalone 'enabled' key usage is deprecated. The correct approach requires also a " \
"'replace' entry under the 'override' key (i.e. 'enabled: replace')."
////////////////
// Errors
////////////////
#define ERROR_OVERRIDE_APPEND \
"Keys 'override' and 'append: true' cannot be used together. Add an 'append' entry (e.g. " \
"'condition: append') under 'override' instead."
#define ERROR_NO_PREVIOUS_MACRO \
"Macro uses 'append' or 'override.condition: append' but no macro by that name already exists"
#define ERROR_NO_PREVIOUS_LIST \
"List uses 'append' or 'override.items: append' but no list by that name already exists"
#define ERROR_NO_PREVIOUS_RULE_APPEND \
"Rule uses 'append' or 'override.<key>: append' but no rule by that name already exists"
#define ERROR_NO_PREVIOUS_RULE_REPLACE \
"An 'override.<key>: replace' to a rule was requested but no rule by that name already exists"