From 2e23f1a99230428359d42603ccb5864e972ddb81 Mon Sep 17 00:00:00 2001 From: vishalnayak Date: Mon, 19 Dec 2016 10:49:32 -0500 Subject: [PATCH] pki: Appended error to error message --- builtin/logical/pki/path_issue_sign.go | 2 +- builtin/logical/pki/path_root.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/builtin/logical/pki/path_issue_sign.go b/builtin/logical/pki/path_issue_sign.go index d41b7d305..d07a3ec17 100644 --- a/builtin/logical/pki/path_issue_sign.go +++ b/builtin/logical/pki/path_issue_sign.go @@ -229,7 +229,7 @@ func (b *backend) pathIssueSignCert( Value: parsedBundle.CertificateBytes, }) if err != nil { - return nil, fmt.Errorf("Unable to store certificate locally") + return nil, fmt.Errorf("Unable to store certificate locally: %v", err) } return resp, nil diff --git a/builtin/logical/pki/path_root.go b/builtin/logical/pki/path_root.go index 31ccbd9af..c9a8cf297 100644 --- a/builtin/logical/pki/path_root.go +++ b/builtin/logical/pki/path_root.go @@ -281,7 +281,7 @@ func (b *backend) pathCASignIntermediate( Value: parsedBundle.CertificateBytes, }) if err != nil { - return nil, fmt.Errorf("Unable to store certificate locally") + return nil, fmt.Errorf("Unable to store certificate locally: %v", err) } if parsedBundle.Certificate.MaxPathLen == 0 {