1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

python: Give a more helpful error message when we do not have an smb.conf

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
This commit is contained in:
Andrew Bartlett 2015-03-04 17:49:36 +13:00
parent ab1ebb1d1c
commit 67b6346e73

View File

@ -197,7 +197,7 @@ def get_paths(param, targetdir=None, smbconf=None):
smbconf = param.default_path()
if not os.path.exists(smbconf):
raise ProvisioningError("Unable to find smb.conf")
raise ProvisioningError("Unable to find smb.conf at %s" % smbconf)
lp = param.LoadParm()
lp.load(smbconf)