summaryrefslogtreecommitdiff
path: root/src/cnode/cnode-algorithm.cpp
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@baturin.org>2020-02-11 16:11:07 +0100
committerDaniil Baturin <daniil@baturin.org>2020-02-11 16:11:07 +0100
commit72d0243f10e4df7c2fb7ce35c3d7f333e83bab97 (patch)
tree313653512384c3d7c7acf7d4dc2d97ad525aa48f /src/cnode/cnode-algorithm.cpp
parent7f6eb1ed2c2a9dc76227ac355446b6d4b6c27733 (diff)
downloadvyatta-cfg-72d0243f10e4df7c2fb7ce35c3d7f333e83bab97.tar.gz
vyatta-cfg-72d0243f10e4df7c2fb7ce35c3d7f333e83bab97.zip
T2026: use a unique exit code for config parse errors.
Diffstat (limited to 'src/cnode/cnode-algorithm.cpp')
-rw-r--r--src/cnode/cnode-algorithm.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cnode/cnode-algorithm.cpp b/src/cnode/cnode-algorithm.cpp
index 7463534..bf3c524 100644
--- a/src/cnode/cnode-algorithm.cpp
+++ b/src/cnode/cnode-algorithm.cpp
@@ -964,7 +964,7 @@ cnode::showConfig(const string& cfg1, const string& cfg2,
}
if (!croot1.get() || !croot2.get()) {
printf("Cannot parse specified config file(s)\n");
- return 1;
+ return VYOS_CONFIG_PARSE_ERROR;
}
if (show_cmds) {