diff options
-rw-r--r-- | src/cnode/cnode-algorithm.cpp | 2 | ||||
-rw-r--r-- | src/vyos-errors.h | 1 |
2 files changed, 2 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) { diff --git a/src/vyos-errors.h b/src/vyos-errors.h index 790f4c4..4ac9f57 100644 --- a/src/vyos-errors.h +++ b/src/vyos-errors.h @@ -2,3 +2,4 @@ #define VYOS_GENERAL_FAILURE 1 #define VYOS_INVALID_PATH 2 #define VYOS_EMPTY_CONFIG 3 +#define VYOS_CONFIG_PARSE_ERROR 4 |