aboutsummaryrefslogtreecommitdiffstats
path: root/services/context/base.go
diff options
context:
space:
mode:
Diffstat (limited to 'services/context/base.go')
-rw-r--r--services/context/base.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/services/context/base.go b/services/context/base.go
index f3f92b7eeb..28d6656fd1 100644
--- a/services/context/base.go
+++ b/services/context/base.go
@@ -83,6 +83,7 @@ func (b *Base) RespHeader() http.Header {
}
// HTTPError returned an error to web browser
+// FIXME: many calls to this HTTPError are not right: it shouldn't expose err.Error() directly, it doesn't accept more than one content
func (b *Base) HTTPError(status int, contents ...string) {
v := http.StatusText(status)
if len(contents) > 0 {