diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2018-10-10 19:19:18 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2018-10-10 19:21:13 +0200 |
commit | 8ef0efb97006081e7f6054a950cb3614dd57729f (patch) | |
tree | 010f330a6b146750c26f44213c4ab3764f59e106 /tests/py/inet/map.t | |
parent | 98b047f231215817d87a49dfffbe7b4c0dc29b57 (diff) |
segtree: set proper error cause on existing elements
Adding new elements result in a confusing "Success" error message.
# nft add element x y { 0-3 }
[...]
Error: Could not process rule: Success
add element x y { 0-3 }
^^^^^^^^^^^^^^^^^^^^^^^^
after this patch, this reports:
Error: Could not process rule: File exists
add element x y { 0-3 }
^^^^^^^^^^^^^^^^^^^^^^^^
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tests/py/inet/map.t')
0 files changed, 0 insertions, 0 deletions