1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-03 04:22:09 +03:00

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.
This commit is contained in:
Jim McDonough
2010-04-20 16:28:47 -04:00
parent 6bf4dbb955
commit a22f03e02c

View File

@ -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;
}
}