diff options
author | Günther Deschner <gd@samba.org> | 2008-03-05 15:21:43 +0100 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2008-03-06 09:14:41 +0100 |
commit | 7f80099e52f4c795bd4c23fd073bde975d2802a0 (patch) | |
tree | ca8ae6d68db627204cd3a5512fd6eb2170f8284e | |
parent | f9e85e579cac2546fe201a5e015a8d60bd6ace28 (diff) | |
download | samba-7f80099e52f4c795bd4c23fd073bde975d2802a0.tar.gz samba-7f80099e52f4c795bd4c23fd073bde975d2802a0.tar.bz2 samba-7f80099e52f4c795bd4c23fd073bde975d2802a0.zip |
Give a better error message why NetServerSetInfo() may fail in the gui.
Guenther
(cherry picked from commit 1bbbebb7767b8a25532e8be3dbd274c211e34bbd)
(This used to be commit 370d030b227486ba87a98f4f6e8920f52f743a94)
-rw-r--r-- | source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c | 2 | ||||
-rw-r--r-- | source3/lib/netapi/serverinfo.c | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c b/source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c index 73b14d4d87..a3719c7442 100644 --- a/source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c +++ b/source3/lib/netapi/examples/netdomjoin-gui/netdomjoin-gui.c @@ -154,7 +154,7 @@ static void callback_apply_description_change(GtkWidget *widget, GTK_MESSAGE_ERROR, GTK_BUTTONS_OK, "Failed to change computer description: %s.", - libnetapi_errstr(status)); + libnetapi_get_error_string(state->ctx, status)); g_signal_connect_swapped(dialog, "response", G_CALLBACK(gtk_widget_destroy), dialog); diff --git a/source3/lib/netapi/serverinfo.c b/source3/lib/netapi/serverinfo.c index 7fa166e411..09f275bac9 100644 --- a/source3/lib/netapi/serverinfo.c +++ b/source3/lib/netapi/serverinfo.c @@ -185,6 +185,9 @@ static WERROR NetServerSetInfoLocal_1005(struct libnetapi_ctx *ctx, } if (!lp_config_backend_is_registry()) { + libnetapi_set_error_string(ctx, + "Configuration manipulation requested but not " + "supported by backend"); return WERR_NOT_SUPPORTED; } |