Skip to content

Commit

Permalink
main: mention LEDGER_AUTH_TOKEN if it's left empty (#35)
Browse files Browse the repository at this point in the history
LEDGER_AUTH_TOKEN is required so we should mention it be name if left empty.
  • Loading branch information
adamdecaf authored and sudhirj committed Jan 7, 2019
1 parent bb202cf commit 10466bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ func main() {
// Assert authentication
authToken, ok := os.LookupEnv("LEDGER_AUTH_TOKEN")
if !ok || authToken == "" {
log.Fatal("Cannot start the server. Authentication token is not set!!")
log.Fatal("Cannot start the server. Authentication token is not set!! Please set LEDGER_AUTH_TOKEN")
}

db, err := sql.Open("postgres", os.Getenv("DATABASE_URL"))
Expand Down

0 comments on commit 10466bb

Please sign in to comment.