Skip to content

Commit 3a4d22a

Browse files
committed
fix bug
1 parent bbd6767 commit 3a4d22a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

routers/web/repo/issue.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1114,8 +1114,7 @@ func ViewIssue(ctx *context.Context) {
11141114
metas["index"] = ctx.Params(":index")
11151115
res, err := vars.Expand(extIssueUnit.ExternalTrackerConfig().ExternalTrackerFormat, metas)
11161116
if err != nil {
1117-
log.Error("unable to expand template vars for issue url. issue: %s, err: %s", metas["index"], err.Error())
1118-
ctx.ServerError("Expand", err)
1117+
ctx.ServerError("Expand", fmt.Errorf("unable to expand template vars for issue url. issue: %s, err: %s", metas["index"], err.Error()))
11191118
return
11201119
}
11211120
ctx.Redirect(res)

0 commit comments

Comments
 (0)