diff options
author | Andrew Bartlett <abartlet@samba.org> | 2015-03-04 17:49:36 +1300 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2015-12-15 08:42:20 +0100 |
commit | 67b6346e736fc04f66affa3025afe34ff1e4cd71 (patch) | |
tree | de6b3291afbcf112ecb2f120e3df2c17935ca4c3 /python | |
parent | ab1ebb1d1c650396841e4ba4a18b3c08689d4f52 (diff) | |
download | samba-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.py | 2 |
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) |