mirror of
https://github.com/TECHNOFAB11/dbmate.git
synced 2025-12-12 08:00:04 +01:00
Provide a reasonable error message to users (#80)
Currently, when the .env file cannot be parsed, the dbmate application bombs with no explanation. This commit prints out the error.
This commit is contained in:
parent
2b885a0aba
commit
2c83de332c
1 changed files with 1 additions and 1 deletions
2
main.go
2
main.go
|
|
@ -123,7 +123,7 @@ func loadDotEnv() {
|
|||
}
|
||||
|
||||
if err := godotenv.Load(); err != nil {
|
||||
log.Fatal("Error loading .env file")
|
||||
log.Fatalf("Error loading .env file: %s", err.Error())
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue