diff options
author | Jim McDonough <jmcd@samba.org> | 2010-04-20 16:28:47 -0400 |
---|---|---|
committer | Jim McDonough <jmcd@samba.org> | 2010-04-20 16:28:47 -0400 |
commit | a22f03e02c99c78642978c8e7a06ae92f97ad41f (patch) | |
tree | 57f4daf1fe10e7d434c5ce3bafbc27d78f12d95d /source3/utils/net_conf.c | |
parent | 6bf4dbb955a1d769008291b31f859c3352f02ad8 (diff) | |
download | samba-a22f03e02c99c78642978c8e7a06ae92f97ad41f.tar.gz samba-a22f03e02c99c78642978c8e7a06ae92f97ad41f.tar.bz2 samba-a22f03e02c99c78642978c8e7a06ae92f97ad41f.zip |
Display an error on net conf import failures.
When something goes wrong, such as a typo in a parameter
name, we'll now display the failure instead of just returning
with -1 and no message.
Diffstat (limited to 'source3/utils/net_conf.c')
-rw-r--r-- | source3/utils/net_conf.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/utils/net_conf.c b/source3/utils/net_conf.c index 67e3c85558..1fc07e12fa 100644 --- a/source3/utils/net_conf.c +++ b/source3/utils/net_conf.c @@ -229,6 +229,9 @@ static WERROR import_process_service(struct net_context *c, service->param_names[idx], service->param_values[idx]); if (!W_ERROR_IS_OK(werr)) { + d_printf("Error in section [%s], parameter \"%s\": %s\n", + service->name, service->param_names[idx], + win_errstr(werr)); goto done; } } |