dataloaden icon indicating copy to clipboard operation
dataloaden copied to clipboard

Better error message when no package name found

Open susisu opened this issue 5 years ago • 0 comments

Fixes (in a sense) #35

The error message is a bit confusing when no package name found for the working directory (for example, an empty directory).

$ go run github.com/vektah/dataloaden UserLoader uint64 *example.com/model.User
unable to gofmt:/path/to/example.com/dataloader/userloader_gen.go:6:1: expected 'IDENT', found 'import'
exit status 2

This pr makes the message clearer.

$ go run github.com/vektah/dataloaden UserLoader uint64 *example.com/model.User
unable to find package name for /path/to/example.com/dataloader
exit status 2

susisu avatar Aug 16 '19 05:08 susisu