Skip to contentSkip to conversation

tests/py: trivial: Fix error message

PATCH Applied Phil Sutter 2 participants 2 messages Dec 9, 2017 netfilter

lore
Share & tools
lore

Phil Sutter

author reviewer
#0 lore raw

PATCH 1/1 tests/py: trivial: Fix error message

The error message for failed chain creation quotes the chain's name but lacked the closing tick.

---
 tests/py/nft-test.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tests/py/nft-test.py +1 -1
index 9ad97714a3b56..6aedfb09e9729 100755
@@ -248,7 +248,7 @@ def chain_create(chain, table, filename):
 
     ret = execute_cmd(cmd, filename, chain.lineno)
     if ret != 0:
-        reason = "I cannot create the chain '" + chain.name
+        reason = "I cannot create the chain '" + chain.name + "'"
         print_error(reason, filename, chain.lineno)
         return -1
 
Signature · 1 line
2.13.1
maintainer Applied
#1 lore raw
Quoted 2 lines · Phil Sutter

The error message for failed chain creation quotes the chain's name but lacked the closing tick.

applied, thanks Phil.