• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

99designs / gqlgen / 13367366394

17 Feb 2025 09:47AM UTC coverage: 73.383% (+0.02%) from 73.366%
13367366394

Pull #3549

github

web-flow
chore(deps): bump golangci/golangci-lint-action from 6.3.1 to 6.5.0

Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action) from 6.3.1 to 6.5.0.
- [Release notes](https://github.com/golangci/golangci-lint-action/releases)
- [Commits](https://github.com/golangci/golangci-lint-action/compare/v6.3.1...v6.5.0)

---
updated-dependencies:
- dependency-name: golangci/golangci-lint-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Pull Request #3549: chore(deps): bump golangci/golangci-lint-action from 6.3.1 to 6.5.0

8646 of 11782 relevant lines covered (73.38%)

541.29 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/graphql/handler/transport/error.go
1
package transport
2

3
import (
4
        "encoding/json"
5
        "fmt"
6
        "net/http"
7

8
        "github.com/vektah/gqlparser/v2/gqlerror"
9

10
        "github.com/99designs/gqlgen/graphql"
11
)
12

13
// SendError sends a best effort error to a raw response writer. It assumes the client can understand the standard
14
// json error response
15
func SendError(w http.ResponseWriter, code int, errors ...*gqlerror.Error) {
×
16
        w.WriteHeader(code)
×
17
        b, err := json.Marshal(&graphql.Response{Errors: errors})
×
18
        if err != nil {
×
19
                panic(err)
×
20
        }
21
        _, _ = w.Write(b)
×
22
}
23

24
// SendErrorf wraps SendError to add formatted messages
25
func SendErrorf(w http.ResponseWriter, code int, format string, args ...any) {
×
26
        SendError(w, code, &gqlerror.Error{Message: fmt.Sprintf(format, args...)})
×
27
}
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc