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.
Fix bug #7378 ("net conf import" fails silently on parameter typo).
(cherry picked from commit
d983085cee01fcf6e6176d395400075e6d5df937)
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;
}
}