Browse Source

Fix error message typo & debug number message

master
NGnius 4 years ago
parent
commit
51f7c71045
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      handlers.go
  2. +1
    -1
      sql_service.go

+ 1
- 1
handlers.go View File

@@ -34,7 +34,7 @@ func boardHandler(w http.ResponseWriter, r *http.Request) {
args := r.URL.Query()
// check args pre-conditions
if !checkArgExists(args, "board", w) {
errorResponse(400, "Missing required 'boards' URL parameter", w, r)
errorResponse(400, "Missing required 'board' URL parameter", w, r)
return
}
board := args.Get("board")


+ 1
- 1
sql_service.go View File

@@ -88,7 +88,7 @@ func sqlInit() error {
},
}
fmt.Printf("SQL Server %s is query type %d\n", sqlServer, queryType)
fmt.Println(len(queryStrings[queryType]))
//fmt.Println(len(queryStrings[queryType]))
db, dbOpenErr = sql.Open(sqlServer, sqlConnection)
if dbOpenErr != nil {
return dbOpenErr