diff --git a/general_test.go b/general_test.go index dff4b926..9c1ac7de 100644 --- a/general_test.go +++ b/general_test.go @@ -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"))) diff --git a/query_gen/lib/builder.go b/query_gen/lib/builder.go index f3511025..fc7fb91e 100644 --- a/query_gen/lib/builder.go +++ b/query_gen/lib/builder.go @@ -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 }