From 67b6346e736fc04f66affa3025afe34ff1e4cd71 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Wed, 4 Mar 2015 17:49:36 +1300 Subject: python: Give a more helpful error message when we do not have an smb.conf Signed-off-by: Andrew Bartlett Reviewed-by: Garming Sam --- python/samba/upgradehelpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'python') diff --git a/python/samba/upgradehelpers.py b/python/samba/upgradehelpers.py index 3b664fe0512..9b2c1c233aa 100644 --- a/python/samba/upgradehelpers.py +++ b/python/samba/upgradehelpers.py @@ -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) -- cgit v1.2.1