Skip to content

Commit

Permalink
handle godotenv error with print
Browse files Browse the repository at this point in the history
  • Loading branch information
tyiuhc committed Jul 25, 2024
1 parent 2c69e4f commit 27e0876
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/experiment/local/client_eu_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ var clientEU *Client
func init() {
err := godotenv.Load()
if err != nil {
log.Fatalf("Error loading .env file: %v", err)
log.Printf("Error loading .env file: %v", err)
}
projectApiKey := os.Getenv("EU_API_KEY")
secretKey := os.Getenv("EU_SECRET_KEY")
Expand Down
2 changes: 1 addition & 1 deletion pkg/experiment/local/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ var client *Client
func init() {
err := godotenv.Load()
if err != nil {
log.Fatalf("Error loading .env file: %v", err)
log.Printf("Error loading .env file: %v", err)
}
projectApiKey := os.Getenv("API_KEY")
secretKey := os.Getenv("SECRET_KEY")
Expand Down

0 comments on commit 27e0876

Please sign in to comment.