Skip to content

Commit

Permalink
Merge pull request #95 from A-Shevchenko/read-certificate-data-improv…
Browse files Browse the repository at this point in the history
…e-logging

improved logging a bit in case of errors when reading certificate data
  • Loading branch information
13ajay authored Dec 18, 2024
2 parents b880799 + 581b282 commit 7234961
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/read_certificate_data.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,12 @@ var readCertificateDataCmd = &cobra.Command{
} else if certificateId != "" {
data, _, err := helper.ReadCertificateData(certificateId)
if err != nil {
log.Println(err)
os.Exit(1)
}
buf, err := json.Marshal(data)
if err != nil {
log.Println(err)
os.Exit(1)
}

Expand Down

0 comments on commit 7234961

Please sign in to comment.