Fix bug 6514: net gives unhelpful "lp_load failed" when it's missing smb.conf
authorDavid Markey <admin@dmarkey.com>
Mon, 29 Jun 2009 06:12:03 +0000 (08:12 +0200)
committerVolker Lendecke <vl@samba.org>
Mon, 29 Jun 2009 06:12:48 +0000 (08:12 +0200)
source3/lib/netapi/netapi.c

index 889388173f005f04b92ee0c1d048c8a2ebc03081..2f8474b37fdd0598abd1cb2e46aa10a87f9194fe 100644 (file)
@@ -89,7 +89,7 @@ NET_API_STATUS libnetapi_init(struct libnetapi_ctx **context)
 
        if (!lp_load(get_dyn_CONFIGFILE(), true, false, false, false)) {
                TALLOC_FREE(frame);
-               fprintf(stderr, "lp_load failed\n");
+               fprintf(stderr, "error loading %s\n", get_dyn_CONFIGFILE() );
                return W_ERROR_V(WERR_GENERAL_FAILURE);
        }