mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Make error more specific to aid in troubleshooting
This commit is contained in:
parent
8c67ab53b4
commit
fed5041c5f
1 changed files with 4 additions and 1 deletions
|
@ -569,7 +569,10 @@ class MinionBase(object):
|
|||
last_exc = exc
|
||||
pki_dirname = os.path.dirname(opts['pki_dir'])
|
||||
if exc.strerror.startswith(
|
||||
'Could not access {0}'.format(pki_dirname)):
|
||||
'Failed to initiate connection with Master '
|
||||
'{0} because the Minion could not access {1}. '
|
||||
'Check ownership/permissions'.format(
|
||||
opts['master'], pki_dirname)):
|
||||
msg = exc.strerror
|
||||
else:
|
||||
msg = ('Master {0} could not be reached, trying '
|
||||
|
|
Loading…
Add table
Reference in a new issue