More troubleshooting...

This commit is contained in:
Azareal 2018-08-29 13:36:17 +10:00
parent 28ba465c8a
commit f84f11a1eb
2 changed files with 7 additions and 2 deletions

View File

@ -85,11 +85,12 @@ func gloinit() (err error) {
}
err = InitDatabase()
if err != nil {
log.Print("err2: ", err)
return err
}
err = afterDBInit()
if err != nil {
return errors.WithStack(err)
return err
}
router, err = NewGenRouter(http.FileServer(http.Dir("./uploads")))

View File

@ -1,7 +1,10 @@
/* WIP Under Construction */
package qgen
import "database/sql"
import (
"database/sql"
"log"
)
var Builder *builder
@ -27,6 +30,7 @@ func (build *builder) Init(adapter string, config map[string]string) error {
}
conn, err := build.adapter.BuildConn(config)
build.conn = conn
log.Print("err: ", err) // Is the problem here somehow?
return err
}