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:
Shammah Chancellor 2019-06-13 20:02:29 -07:00 committed by Adrian Macneil
parent 2b885a0aba
commit 2c83de332c

View file

@ -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())
}
}