Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement basic app.ini and path checks to doctor cmd #10064

Merged
merged 13 commits into from
Jan 30, 2020
Prev Previous commit
Next Next commit
Apaise lint
  • Loading branch information
guillep2k committed Jan 30, 2020
commit 3509a7b9dc7150b2050f8bc9ecb4a7ec29451d27
4 changes: 2 additions & 2 deletions cmd/doctor.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ func runDoctorPathInfo(ctx *cli.Context) ([]string, error) {
res = append(res, fmt.Sprintf("Failed to find configuration file at '%s'.", setting.CustomConf))
res = append(res, fmt.Sprintf("If you've never ran Gitea yet, this is normal and '%s' will be created for you on first run.", setting.CustomConf))
res = append(res, "Otherwise check that you are running this command from the correct path and/or provide a `--config` parameter.")
return res, fmt.Errorf("Can't proceed without a configuration file")
return res, fmt.Errorf("can't proceed without a configuration file")
}

setting.NewContext()
Expand Down Expand Up @@ -155,7 +155,7 @@ func runDoctorPathInfo(ctx *cli.Context) ([]string, error) {
}

if fail {
return res, fmt.Errorf("Please check your configuration file and try again.")
return res, fmt.Errorf("please check your configuration file and try again")
}

return res, nil
Expand Down