Skip to content

Commit

Permalink
v0.0.5-beta
Browse files Browse the repository at this point in the history
  • Loading branch information
yangkenneth committed Dec 18, 2023
1 parent 2f96c68 commit 18cbccf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
5 changes: 0 additions & 5 deletions docs/GETTING_STARTED.md
Original file line number Diff line number Diff line change
Expand Up @@ -334,10 +334,6 @@ func main() {
}
client, err := baseca.LoadDefaultConfiguration(configuration, baseca.Attestation.Local, authentication)
if err != nil {
fmt.Println(err)
}
if err != nil {
// Handle Error
log.Fatal(err)
Expand All @@ -361,7 +357,6 @@ func main() {
CertificateSigningRequest: "/tmp/certificate_request.csr", // baseca CSR Output Location
},
}
}
response, err := client.IssueCertificate(metadata)
Expand Down
5 changes: 3 additions & 2 deletions internal/config/load.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package config
import (
"errors"
"fmt"
"log"
"os"
"path/filepath"
"runtime"
Expand Down Expand Up @@ -81,7 +82,7 @@ func (cp *configProvider) Exists(path string) bool {
func GetTestConfigurationPath() (*Config, error) {
_, filename, _, ok := runtime.Caller(0)
if !ok {
fmt.Println("Error: Unable to get current file path")
log.Fatal("Error: Unable to get current file path")
}

baseDir := filepath.Dir(filename)
Expand All @@ -92,7 +93,7 @@ func GetTestConfigurationPath() (*Config, error) {

parentDir := filepath.Dir(baseDir)
if parentDir == baseDir {
fmt.Println("Error: Unable to find base directory")
log.Fatal("Error: Unable to find base directory")
break
}

Expand Down

0 comments on commit 18cbccf

Please sign in to comment.