Skip to content

Commit

Permalink
remove the mandatory of .env file
Browse files Browse the repository at this point in the history
  • Loading branch information
ardafirdausr committed Jul 17, 2021
1 parent 67fe8b4 commit 393a4ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ func New() (*TodoApp, error) {

err := godotenv.Load()
if err != nil {
log.Fatalf("Failed to load .env file \n%v", err)
log.Printf("Warning! The .env file is not found. Make sure all env variables are declared \n%v", err)
}

app.Repositories, err = NewRepositories()
Expand Down

0 comments on commit 393a4ab

Please sign in to comment.