git.samba.org
/
ira
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
11b81cb
)
Nicen error output in net_ads_leave.
author
Günther Deschner
<gd@samba.org>
Thu, 28 Feb 2008 13:08:32 +0000
(14:08 +0100)
committer
Günther Deschner
<gd@samba.org>
Thu, 28 Feb 2008 13:11:21 +0000
(14:11 +0100)
Guenther
(This used to be commit
b0d1db95e5d7590f9c67be7bf5cb78adfee16635
)
source3/utils/net_ads.c
patch
|
blob
|
history
diff --git
a/source3/utils/net_ads.c
b/source3/utils/net_ads.c
index daddbfae73c5125383e0b3ee9771a130c69c15c9..c69b8165863a0ee7c4f11a308a7e32cfb6adcc68 100644
(file)
--- 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;
}