summaryrefslogtreecommitdiff
path: root/source4/scripting/bin/samba-tool
diff options
context:
space:
mode:
Diffstat (limited to 'source4/scripting/bin/samba-tool')
-rwxr-xr-xsource4/scripting/bin/samba-tool6
1 files changed, 5 insertions, 1 deletions
diff --git a/source4/scripting/bin/samba-tool b/source4/scripting/bin/samba-tool
index f220b82fd9..c24c0e38db 100755
--- a/source4/scripting/bin/samba-tool
+++ b/source4/scripting/bin/samba-tool
@@ -70,4 +70,8 @@ if __name__ == '__main__':
if len(sys.argv) > 2:
args = sys.argv[2:]
- cmd._run("samba-tool.py", command, *args)
+ try:
+ retval = cmd._run("samba-tool", command, *args)
+ sys.exit(retval)
+ except Exception as e:
+ cmd.show_command_error(e)