configured mysql dsn configuration

This commit is contained in:
rawleyIfowler
2022-02-13 18:38:26 -06:00
parent 0221e3f63a
commit 9246e6e4fd
3 changed files with 5 additions and 46 deletions

View File

@@ -29,5 +29,8 @@ func LoadDSN(dsnPath string) string {
defer file.Close()
reader := bufio.NewScanner(file)
// The dsn should be the first line of the file
return reader.Text()
if reader.Scan() {
return reader.Text()
}
panic(dsnPath + " is empty...")
}