mirror of
https://github.com/go-gitea/gitea
synced 2025-07-23 02:38:35 +00:00
Fix 500 when repo has invalid .editorconfig
Creating a notice instead
This commit is contained in:
@@ -245,12 +245,10 @@ func Home(ctx *context.Context) {
|
||||
return
|
||||
}
|
||||
|
||||
ec, err := ctx.Repo.GetEditorconfig()
|
||||
if err != nil && !git.IsErrNotExist(err) {
|
||||
ctx.Handle(500, "Repo.GetEditorconfig", err)
|
||||
setEditorconfigIfExists(ctx)
|
||||
if ctx.Written() {
|
||||
return
|
||||
}
|
||||
ctx.Data["Editorconfig"] = ec
|
||||
|
||||
var treeNames []string
|
||||
paths := make([]string, 0, 5)
|
||||
|
Reference in New Issue
Block a user