From 97d4eabd90b9aae537492eb5c1ad000b3930e12d Mon Sep 17 00:00:00 2001 From: Glynn Forrest Date: Sun, 15 Dec 2019 11:27:15 -0600 Subject: [PATCH] Add a more descriptive error message --- salt/states/x509.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/salt/states/x509.py b/salt/states/x509.py index 6cbb5d20a2ab..24c40f4c16e8 100644 --- a/salt/states/x509.py +++ b/salt/states/x509.py @@ -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)