Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
added a short message on missing file for sqlc diff
  • Loading branch information
rglKali committed Oct 17, 2025
commit aa44721b385e2f8e82261014a8e295e4a54ddd29
2 changes: 1 addition & 1 deletion internal/cmd/diff.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func Diff(ctx context.Context, dir, name string, opts *Options) error {
source := output[filename]
if _, err := os.Stat(filename); errors.Is(err, os.ErrNotExist) {
errored = true
// stdout message
fmt.Fprintf(stderr, "missing %s\n", filename)
continue
}
existing, err := os.ReadFile(filename)
Expand Down
Loading