python: Give a more helpful error message when we do not have an smb.conf
[sfrench/samba-autobuild/.git] / 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)