Skip to content

Commit 2c81c22

Browse files
committed
log
Signed-off-by: a1012112796 <[email protected]>
1 parent 5e8ef6b commit 2c81c22

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

routers/web/repo/view.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ import (
4040
"code.gitea.io/gitea/modules/typesniffer"
4141
"code.gitea.io/gitea/modules/util"
4242
"code.gitea.io/gitea/routers/web/feed"
43+
4344
"github.com/nektos/act/pkg/model"
4445
)
4546

@@ -353,8 +354,7 @@ func renderFile(ctx *context.Context, entry *git.TreeEntry, treeLink, rawLink st
353354
} else if actions.IsWorkFlow(ctx.Repo.TreePath) {
354355
content, err := actions.GetContentFromEntry(entry)
355356
if err != nil {
356-
ctx.Error(http.StatusInternalServerError, err.Error())
357-
return
357+
log.Error("actions.GetContentFromEntry: %v", err)
358358
}
359359
_, workFlowErr := model.ReadWorkflow(bytes.NewReader(content))
360360
if workFlowErr != nil {

0 commit comments

Comments
 (0)