net conf: add diagnostic message for failure to load text file.
authorMichael Adam <obnox@samba.org>
Wed, 9 Apr 2008 13:17:28 +0000 (15:17 +0200)
committerMichael Adam <obnox@samba.org>
Wed, 9 Apr 2008 23:29:02 +0000 (01:29 +0200)
Michael
(This used to be commit 8f2c3efa679d44acc900fb90f03319e830a7dcf4)

source3/utils/net_conf.c

index 575bfb89cad4023ceccca39ea83f2d0edb53acec..6f99df2c90aedd2b7dbbbc11a05b52aad95aec56 100644 (file)
@@ -271,6 +271,8 @@ static int net_conf_import(struct smbconf_ctx *conf_ctx,
 
        werr = smbconf_init_txt_simple(mem_ctx, &txt_ctx, filename, true);
        if (!W_ERROR_IS_OK(werr)) {
+               d_printf("error loading file '%s': %s\n", filename,
+                        dos_errstr(werr));
                goto done;
        }