Skip to content

Commit

Permalink
[FAB-4126] Convert fatal message to error
Browse files Browse the repository at this point in the history
log.Fatal exits the process with 1 , which is not we want
to do in util function, we will let caller to decide to
exit or not.

Change-Id: I403a3c621e77eb40b871ab1c0afa1dc2130535e8
Signed-off-by: Anil Ambati <[email protected]>
  • Loading branch information
Anil Ambati committed Jul 19, 2017
1 parent b9e8a8e commit 086cc2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tcert/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ func GetCertificate(certificate []byte) (*x509.Certificate, error) {
} else {
certificates, err = x509.ParseCertificates(block.Bytes)
if err != nil {
log.Fatal("PEM Certificatre Parse failed")
log.Error("PEM Certificatre Parse failed")
return nil, errors.New("PEM Certificate Parse failed")
} //else {
isvalidCert = ValidateCert(certificates[0])
Expand Down

0 comments on commit 086cc2f

Please sign in to comment.