More troubleshooting...
This commit is contained in:
parent
28ba465c8a
commit
f84f11a1eb
|
@ -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")))
|
||||||
|
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue