diff --git a/internal/handlers/check.go b/internal/handlers/check.go index 549b9cf..bb24797 100644 --- a/internal/handlers/check.go +++ b/internal/handlers/check.go @@ -116,7 +116,7 @@ func CheckMyWork(w http.ResponseWriter, r *http.Request) { column := header[colIndex] item[column] = cell c := numberToExcelColumn(colIndex) - i := c + strconv.Itoa(rowIndex) + i := c + strconv.Itoa(rowIndex+2) if cell == "" { if strInSlice(column, requiredFields) { errors[i] = "Missing value" @@ -147,6 +147,10 @@ func CheckMyWork(w http.ResponseWriter, r *http.Request) { } } + if len(errors) > 0 { + slog.Info("Errors detected", "errors", errors) + } + w.Header().Set("Content-Type", "application/json") jsonResponse, err := json.Marshal(errors) if err != nil {