]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
samba-tool group listmembers: hide python backtracke on command error
authorBjörn Baumbach <bb@sernet.de>
Wed, 26 Feb 2020 12:05:16 +0000 (13:05 +0100)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 28 Feb 2020 03:08:45 +0000 (03:08 +0000)
Signed-off-by: Björn Baumbach <bb@sernet.de>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
python/samba/netcmd/group.py

index 6e5ed1def28d9ad541a3bb1f2c50cfae9e63dab1..46000e7f9dec8da5f7b2658d62c69283576f1746 100644 (file)
@@ -549,7 +549,8 @@ samba-tool group listmembers \"Domain Users\" -H ldap://samba.samdom.example.com
                 self.outf.write("%s\n" % member_name)
 
         except Exception as e:
-            raise CommandError('Failed to list members of "%s" group ' % groupname, e)
+            raise CommandError('Failed to list members of "%s" group - %s' %
+                               (groupname, e))
 
 
 class cmd_group_move(Command):