aboutsummaryrefslogtreecommitdiffstats
path: root/routers
diff options
context:
space:
mode:
authorAntoine GIRARD <sapk@users.noreply.github.com>2019-10-17 02:15:02 +0200
committerLunny Xiao <xiaolunwen@gmail.com>2019-10-17 08:15:02 +0800
commitc748deef33df6169c5ec3490a4ccd0b58aad5da0 (patch)
tree194cb47ae388d80320159f63b6c34eb723536a0c /routers
parentde4f10be86b207b087ba9781c628fe3d7b059f7b (diff)
downloadgitea-c748deef33df6169c5ec3490a4ccd0b58aad5da0.tar.gz
gitea-c748deef33df6169c5ec3490a4ccd0b58aad5da0.zip
don't ignore error message (#8550)
Diffstat (limited to 'routers')
-rw-r--r--routers/api/v1/repo/file.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/api/v1/repo/file.go b/routers/api/v1/repo/file.go
index f213737d54..f1a61bb0be 100644
--- a/routers/api/v1/repo/file.go
+++ b/routers/api/v1/repo/file.go
@@ -136,7 +136,7 @@ func GetEditorconfig(ctx *context.APIContext) {
}
fileName := ctx.Params("filename")
- def, _ := ec.GetDefinitionForFilename(fileName)
+ def, err := ec.GetDefinitionForFilename(fileName)
if def == nil {
ctx.NotFound(err)
return