summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-02-28 14:08:32 +0100
committerGünther Deschner <gd@samba.org>2008-02-28 14:11:21 +0100
commit4d55efe4ab2fed0205d5ce7ffa111b89e0d04c73 (patch)
treee2555609ea7758e80a037732256fb01ba51c5d81 /source3
parent11b81cb8e419315abc8bf2d7b1a93424aa9788e9 (diff)
downloadsamba-4d55efe4ab2fed0205d5ce7ffa111b89e0d04c73.tar.gz
samba-4d55efe4ab2fed0205d5ce7ffa111b89e0d04c73.tar.bz2
samba-4d55efe4ab2fed0205d5ce7ffa111b89e0d04c73.zip
Nicen error output in net_ads_leave.
Guenther (This used to be commit b0d1db95e5d7590f9c67be7bf5cb78adfee16635)
Diffstat (limited to 'source3')
-rw-r--r--source3/utils/net_ads.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source3/utils/net_ads.c b/source3/utils/net_ads.c
index daddbfae73..c69b816586 100644
--- a/source3/utils/net_ads.c
+++ b/source3/utils/net_ads.c
@@ -839,8 +839,9 @@ static int net_ads_leave(int argc, const char **argv)
werr = libnet_Unjoin(ctx, r);
if (!W_ERROR_IS_OK(werr)) {
- d_printf("%s: %s\n", get_friendly_werror_msg(werr),
- r->out.error_string ? r->out.error_string : "");
+ d_printf("Failed to leave domain: %s\n",
+ r->out.error_string ? r->out.error_string :
+ get_friendly_werror_msg(werr));
goto done;
}