From 5a03e97e8b54d6cbfa4ea4a6ebef20126df9290a Mon Sep 17 00:00:00 2001 From: An-Cheng Huang Date: Thu, 18 Nov 2010 09:35:07 -0800 Subject: change error message when showing non-existing paths. --- src/cnode/cnode-algorithm.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/cnode/cnode-algorithm.cpp b/src/cnode/cnode-algorithm.cpp index c5a2d54..405ab4f 100644 --- a/src/cnode/cnode-algorithm.cpp +++ b/src/cnode/cnode-algorithm.cpp @@ -379,7 +379,8 @@ cnode::show_diff(const CfgNode& cfg1, const CfgNode& cfg2, bool show_def, printf("Specified configuration path is not valid\n"); return; } - if (cfg1.isEmpty() && cfg2.isEmpty()) { + if ((cfg1.isEmpty() && cfg2.isEmpty()) + || (!cfg1.exists() && !cfg2.exists())) { printf("Configuration under specified path is empty\n"); return; } -- cgit v1.2.3