#1424·xorm

[xorm.NewEngine] I gave wrong 'dataSourceName' but can't panic the error

Author: coneroCreated Sep 17, 2019Updated Sep 17, 2019
Labelsquestion

I used xorm to connect Mysql.

go
// code ....
engine, err := xorm.NewEngine(vtype, dsn)
// dsn is wrong
// but never panic the error 

// I had to check use a SQL like:
md, er := engine.QueryString("select database() as `cdb`, user() as `user`")
// er =>
// `Error 1045: Access denied for user 'root'@'localhost' (using password: YES)`

// code ....

What I gonna to, please give me a hand.