mirror of
1
Fork 0

Merge pull request #510 from evolvedlight/master

Fix minor typo
This commit is contained in:
无闻 2014-09-28 18:05:16 -04:00
commit ecdbeea3f5
1 changed files with 2 additions and 2 deletions

View File

@ -87,7 +87,7 @@ func getEngine() (*xorm.Engine, error) {
func NewTestEngine(x *xorm.Engine) (err error) { func NewTestEngine(x *xorm.Engine) (err error) {
x, err = getEngine() x, err = getEngine()
if err != nil { 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...) return x.Sync(tables...)
@ -96,7 +96,7 @@ func NewTestEngine(x *xorm.Engine) (err error) {
func SetEngine() (err error) { func SetEngine() (err error) {
x, err = getEngine() x, err = getEngine()
if err != nil { 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, // WARNNING: for serv command, MUST remove the output to os.stdout,