File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -149,15 +149,15 @@ func getEngine() (*xorm.Engine, error) {
149
149
}
150
150
case "sqlite3" :
151
151
if ! EnableSQLite3 {
152
- return nil , errors .New ("This binary version does not build support for SQLite3. " )
152
+ return nil , errors .New ("this binary version does not build support for SQLite3" )
153
153
}
154
154
if err := os .MkdirAll (path .Dir (DbCfg .Path ), os .ModePerm ); err != nil {
155
155
return nil , fmt .Errorf ("Fail to create directories: %v" , err )
156
156
}
157
157
connStr = "file:" + DbCfg .Path + "?cache=shared&mode=rwc"
158
158
case "tidb" :
159
159
if ! EnableTiDB {
160
- return nil , errors .New ("This binary version does not build support for TiDB. " )
160
+ return nil , errors .New ("this binary version does not build support for TiDB" )
161
161
}
162
162
if err := os .MkdirAll (path .Dir (DbCfg .Path ), os .ModePerm ); err != nil {
163
163
return nil , fmt .Errorf ("Fail to create directories: %v" , err )
@@ -218,7 +218,7 @@ func NewEngine() (err error) {
218
218
}
219
219
220
220
if err = x .StoreEngine ("InnoDB" ).Sync2 (tables ... ); err != nil {
221
- return fmt .Errorf ("sync database struct error: %v\n " , err )
221
+ return fmt .Errorf ("sync database struct error: %v" , err )
222
222
}
223
223
224
224
return nil
You can’t perform that action at this time.
0 commit comments