diff options
author | Yousong Zhou <yszhou4tech@gmail.com> | 2015-01-24 23:07:52 +0800 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2015-01-24 20:46:42 +0100 |
commit | 3e26ec5716e8b23706bbb566b136eb06138ad978 (patch) | |
tree | 8f1ef427e81ad6d49d1306b723e65afea73f09ca | |
parent | 446e774d0e39aeb08d9df4a80453e1334805a606 (diff) | |
download | uci-3e26ec5716e8b23706bbb566b136eb06138ad978.tar.gz |
cli: enhance "uci show" command on nonexistent sections and options.
When doing "uci show network.nilsection", the current behaviour is that
uci will emit a error message complaining "Entry not found", then
continue to show all content of the package network itself. This is
couter-intuition.
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
-rw-r--r-- | cli.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -314,6 +314,7 @@ static int package_cmd(int cmd, char *tuple) if (!(ptr.flags & UCI_LOOKUP_COMPLETE)) { ctx->err = UCI_ERR_NOTFOUND; cli_perror(); + goto out; } switch(e->type) { case UCI_TYPE_PACKAGE: |