Skip to content

Commit

Permalink
Add a more descriptive error message
Browse files Browse the repository at this point in the history
  • Loading branch information
glynnforrest committed Dec 15, 2019
1 parent dfeb207 commit 97d4eab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion salt/states/x509.py
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,7 @@ def certificate_managed(name,
contents += append_file_contents
except salt.exceptions.SaltInvocationError as e:
ret['result'] = False
ret['comment'] = '{0} is not a valid certificate file, cannot append it to the certificate:\n{1}'.format(name, str(e))
ret['comment'] = '{0} is not a valid certificate file, cannot append it to the certificate {1}.\nThe error returned by the x509 module was:\n{2}'.format(append_file, name, str(e))
return ret

file_args, extra_args = _get_file_args(name, **kwargs)
Expand Down

0 comments on commit 97d4eab

Please sign in to comment.