1
0
mirror of https://gitlab.labs.nic.cz/labs/bird.git synced 2024-05-11 16:54:54 +00:00

Filter: Print proper error response in multiple method dispatch

When no matching method is found, print an error response containing
position and type of infringing argument and a set of expected types.
This commit is contained in:
Ondrej Zajicek
2023-07-12 20:11:34 +02:00
parent e4ce88cc50
commit e886959131
3 changed files with 82 additions and 7 deletions

View File

@@ -20,6 +20,8 @@ enum f_type {
/* Nothing. Simply nothing. */
T_VOID = 0,
T_NONE = 1, /* Special hack to represent missing arguments */
/* User visible types, which fit in int */
T_INT = 0x10,
T_BOOL = 0x11,