MCPcopy Index your code
hub / github.com/sqlc-dev/sqlc / printFileErr

Function printFileErr

internal/cmd/generate.go:50–56  ·  view source on GitHub ↗
(stderr io.Writer, dir string, fileErr *multierr.FileError)

Source from the content-addressed store, hash-verified

48const errMessageNoPackages = `No packages are configured`
49
50func printFileErr(stderr io.Writer, dir string, fileErr *multierr.FileError) {
51 filename, err := filepath.Rel(dir, fileErr.Filename)
52 if err != nil {
53 filename = fileErr.Filename
54 }
55 fmt.Fprintf(stderr, "%s:%d:%d: %s\n", filename, fileErr.Line, fileErr.Column, fileErr.Err)
56}
57
58func findPlugin(conf config.Config, name string) (*config.Plugin, error) {
59 for _, plug := range conf.Plugins {

Callers 1

parseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected