aboutsummaryrefslogtreecommitdiffstats
path: root/models/models.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-08-02 12:36:35 +0800
committerUnknwon <u@gogs.io>2015-08-02 12:37:29 +0800
commitcbb78b6a6331921403fb4cfcf45812efa89f6c3b (patch)
tree55bcb121601dc760c67d2335d4f8a8868c7989da /models/models.go
parentd496d0cc4d4d07fc77a7961e178225062f080d72 (diff)
downloadgitea-cbb78b6a6331921403fb4cfcf45812efa89f6c3b.tar.gz
gitea-cbb78b6a6331921403fb4cfcf45812efa89f6c3b.zip
better wording
Diffstat (limited to 'models/models.go')
-rw-r--r--models/models.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/models/models.go b/models/models.go
index 44fd563135..7bed39c451 100644
--- a/models/models.go
+++ b/models/models.go
@@ -122,7 +122,7 @@ func getEngine() (*xorm.Engine, error) {
func NewTestEngine(x *xorm.Engine) (err error) {
x, err = getEngine()
if err != nil {
- return fmt.Errorf("connect to database: %v", err)
+ return fmt.Errorf("Connect to database: %v", err)
}
x.SetMapper(core.GonicMapper{})
@@ -132,7 +132,7 @@ func NewTestEngine(x *xorm.Engine) (err error) {
func SetEngine() (err error) {
x, err = getEngine()
if err != nil {
- return fmt.Errorf("connect to database: %v", err)
+ return fmt.Errorf("Connect to database: %v", err)
}
x.SetMapper(core.GonicMapper{})
@@ -144,7 +144,7 @@ func SetEngine() (err error) {
f, err := os.Create(logPath)
if err != nil {
- return fmt.Errorf("models.init(fail to create xorm.log): %v", err)
+ return fmt.Errorf("Fail to create xorm.log: %v", err)
}
x.SetLogger(xorm.NewSimpleLogger(f))