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() err = InitDatabase()
if err != nil { if err != nil {
log.Print("err2: ", err)
return err return err
} }
err = afterDBInit() err = afterDBInit()
if err != nil { if err != nil {
return errors.WithStack(err) return err
} }
router, err = NewGenRouter(http.FileServer(http.Dir("./uploads"))) router, err = NewGenRouter(http.FileServer(http.Dir("./uploads")))

View File

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