浏览代码

Added loggibng err msg

TC pushbot 5 4 年之前
父节点
当前提交
bc42fbe4aa
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      mod/database/database.go

+ 1 - 0
mod/database/database.go

@@ -167,6 +167,7 @@ func (d *Database) KeyExists(tableName string, key string) bool {
 	resultIsNil := false
 	if !d.TableExists(tableName) {
 		//Table not exists. Do not proceed accessing key
+		log.Println("[DB] ERROR: Requesting key from table that didn't exist!!!")
 		return false
 	}
 	err := d.Db.View(func(tx *bolt.Tx) error {