diff options
author | evolvedlight <steve@evolvedlight.co.uk> | 2014-09-28 22:01:05 +0100 |
---|---|---|
committer | evolvedlight <steve@evolvedlight.co.uk> | 2014-09-28 22:01:05 +0100 |
commit | b7b0ee7df96c019795e3939dbb33389f7f0c2c43 (patch) | |
tree | 2daa430aaebab1e5686e2c56bf485c151c4bbbeb /models/models.go | |
parent | 11af8658cf7c5973cd0d5a7910885eae2d1c9b71 (diff) | |
download | gitea-b7b0ee7df96c019795e3939dbb33389f7f0c2c43.tar.gz gitea-b7b0ee7df96c019795e3939dbb33389f7f0c2c43.zip |
Fix minor typo
Diffstat (limited to 'models/models.go')
-rw-r--r-- | models/models.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/models/models.go b/models/models.go index 283a8f7a93..570df0c114 100644 --- a/models/models.go +++ b/models/models.go @@ -87,7 +87,7 @@ func getEngine() (*xorm.Engine, error) { func NewTestEngine(x *xorm.Engine) (err error) { x, err = getEngine() if err != nil { - return fmt.Errorf("models.init(fail to conntect database): %v", err) + return fmt.Errorf("models.init(fail to connect to database): %v", err) } return x.Sync(tables...) @@ -96,7 +96,7 @@ func NewTestEngine(x *xorm.Engine) (err error) { func SetEngine() (err error) { x, err = getEngine() if err != nil { - return fmt.Errorf("models.init(fail to conntect database): %v", err) + return fmt.Errorf("models.init(fail to connect to database): %v", err) } // WARNNING: for serv command, MUST remove the output to os.stdout, |