[netcf-devel] [PATCH 3/4] * src/ncftool.c: print error details when ncf_init fails

David Lutterkort lutter at redhat.com
Thu Oct 15 15:23:59 UTC 2009


---
 src/ncftool.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/ncftool.c b/src/ncftool.c
index 64e8935..9b589f5 100644
--- a/src/ncftool.c
+++ b/src/ncftool.c
@@ -754,6 +754,8 @@ int main(int argc, char **argv) {
 
     if (ncf_init(&ncf, root) < 0) {
         fprintf(stderr, "Failed to initialize netcf\n");
+        if (ncf != NULL)
+            print_netcf_error();
         exit(EXIT_FAILURE);
     }
     readline_init();
-- 
1.6.2.5



More information about the netcf-devel mailing list