Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions config/application.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

if err := app.vip.ReadInConfig(); err != nil {
color.Errorln("Invalid Config error: " + err.Error())
os.Exit(1)
os.Exit(0)

Check warning on line 32 in config/application.go

View check run for this annotation

Codecov / codecov/patch

config/application.go#L32

Added line #L32 was not covered by tests
}
}

Expand All @@ -39,13 +39,13 @@
color.Errorln("Please initialize APP_KEY first.")
color.Default().Println("Create a .env file and run command: go run . artisan key:generate")
color.Default().Println("Or set a system variable: APP_KEY={32-bit number} go run .")
os.Exit(1)
os.Exit(0)

Check warning on line 42 in config/application.go

View check run for this annotation

Codecov / codecov/patch

config/application.go#L42

Added line #L42 was not covered by tests
}

if len(appKey.(string)) != 32 {
color.Errorln("Invalid APP_KEY, the length must be 32, please reset it.")
color.Warningln("Example command: \ngo run . artisan key:generate")
os.Exit(1)
os.Exit(0)

Check warning on line 48 in config/application.go

View check run for this annotation

Codecov / codecov/patch

config/application.go#L48

Added line #L48 was not covered by tests
}
}

Expand Down
Loading