Skip to content

Commit

Permalink
add: INFO
Browse files Browse the repository at this point in the history
  • Loading branch information
HilkopterBob committed Oct 7, 2024
1 parent d7ea1fd commit 9846d74
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions db/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@ func InitDB() error {
"user": dbUsername,
"pass": dbPasswd,
}); err != nil {
// FIXME: Logging of wrong username and maybe SHA-PASSWD?

errorMessage := fmt.Sprintf(` Couldn't connect to DB! Got: '%s'.
1. Check the config for a wrong DB-Username/Password (Currently: %s/<read the config!>)
3. Consult the PackageLock Doc's! 🚀
Expand All @@ -53,7 +51,7 @@ func InitDB() error {
return nil
}

// If you use this, fix it!
// INFO: If you use this, fix it!
func Select(tablename string, SliceOfType interface{}) error {
transaction, err := DB.Select(tablename)
if err != nil {
Expand Down

0 comments on commit 9846d74

Please sign in to comment.