index
:
gogs.git
Gogs is a painless self-hosted Git service
log msg
author
committer
range
buildscript
main
mygogs
about
summary
refs
log
tree
commit
diff
path:
root
/
models
/
errors
diff options
context:
1
2
3
4
5
6
7
8
9
10
15
20
25
30
35
40
space:
include
ignore
mode:
unified
ssdiff
stat only
author
Unknwon <u@gogs.io>
2018-08-17 23:35:53 +0800
committer
Unknwon <u@gogs.io>
2018-08-17 23:35:53 +0800
commit
512a900202420190ee4f6db5f3a1c3f19c75507f
(
patch
)
tree
877078b1b7ca7d06e1e55fe78f91e10ea158313c
/
models/errors
parent
ba7b2cc1f68cd374576b186784d784b03df033f1
(
diff
)
repo/editor: hide internal error detail
Prevent exposure of server path
Diffstat
(limited to 'models/errors')
-rw-r--r--
models/errors/errors.go
2
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)