python: Give a more helpful error message when we do not have an smb.conf
authorAndrew Bartlett <abartlet@samba.org>
Wed, 4 Mar 2015 04:49:36 +0000 (17:49 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 15 Dec 2015 07:42:20 +0000 (08:42 +0100)
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
python/samba/upgradehelpers.py

index 3b664fe0512e7532d21ca76d48ad2656d7b1ec23..9b2c1c233aaa004897f9e5139baa1715ab0523b3 100644 (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)