aboutsummaryrefslogtreecommitdiff
path: root/models
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2018-08-17 23:35:53 +0800
committerUnknwon <u@gogs.io>2018-08-17 23:35:53 +0800
commit512a900202420190ee4f6db5f3a1c3f19c75507f (patch)
tree877078b1b7ca7d06e1e55fe78f91e10ea158313c /models
parentba7b2cc1f68cd374576b186784d784b03df033f1 (diff)
repo/editor: hide internal error detail
Prevent exposure of server path
Diffstat (limited to 'models')
-rw-r--r--models/errors/errors.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/models/errors/errors.go b/models/errors/errors.go
index 43ed6335..cc231436 100644
--- a/models/errors/errors.go
+++ b/models/errors/errors.go
@@ -6,6 +6,8 @@ package errors
import "errors"
+var InternalServerError = errors.New("internal server error")
+
// New is a wrapper of real errors.New function.
func New(text string) error {
return errors.New(text)