summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2015-03-04 17:49:36 +1300
committerAndrew Bartlett <abartlet@samba.org>2015-12-15 08:42:20 +0100
commit67b6346e736fc04f66affa3025afe34ff1e4cd71 (patch)
treede6b3291afbcf112ecb2f120e3df2c17935ca4c3 /python
parentab1ebb1d1c650396841e4ba4a18b3c08689d4f52 (diff)
downloadsamba-67b6346e736fc04f66affa3025afe34ff1e4cd71.tar.gz
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>
Diffstat (limited to 'python')
-rw-r--r--python/samba/upgradehelpers.py2
1 files changed, 1 insertions, 1 deletions
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)