]> git.puffer.fish Git - matthieu/frr.git/commit
lib: fix regcomp error processing
authorIgor Ryzhov <iryzhov@nfware.com>
Mon, 21 Sep 2020 12:35:56 +0000 (15:35 +0300)
committerIgor Ryzhov <iryzhov@nfware.com>
Mon, 21 Sep 2020 12:35:56 +0000 (15:35 +0300)
commit511942ba37661c28aa4ee2062eb6546fd50b3dfc
tree8bdd06fdf9486af48fc88303bb80d37bba1392de
parent1f79037b72f0ec93153f9505a11bce9812429993
lib: fix regcomp error processing

 * use actual error code instead of "false"
 * add missing new line

Before:
```
nfware# show interface | include (a]
% Regex compilation error: Success% Bad regexp '(a]'
% Unknown command: show interface | include (a]
```

After:
```
nfware# show interface | include (a]
% Regex compilation error: Unmatched ( or \(
% Bad regexp '(a]'
% Unknown command: show interface | include (a]
```

Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
lib/vty.c