spr
spr copied to clipboard
Error message on empty `.spr.yml`
It would be good to mention the filename .spr.yml
in the following message:
$ git-spr --help
panic: EOF
goroutine 1 [running]:
github.com/ejoffe/rake.check(...)
/Users/runner/go/pkg/mod/github.com/ejoffe/[email protected]/config.go:27
github.com/ejoffe/rake.(*yamlSource).Load(0xc0001f8f70, {0x7f9400, 0xc000147cc0})
/Users/runner/go/pkg/mod/github.com/ejoffe/[email protected]/yaml_source.go:31 +0x2c5
github.com/ejoffe/rake.LoadSources({0x7f9400, 0xc000147cc0}, {0xc0001c3dd8, 0x4, 0x8c})
/Users/runner/go/pkg/mod/github.com/ejoffe/[email protected]/config.go:21 +0xa9
github.com/ejoffe/spr/config/config_parser.ParseConfig({0x92d978, 0xc000130a50})
/Users/runner/work/spr/spr/config/config_parser/config_parser.go:17 +0x30d
main.main()
/Users/runner/work/spr/spr/cmd/spr/main.go:42 +0x156
It would be good not to panic. spr also panics on a YAML file containing only comments. Combined with #372 it makes the getting started process a bit hairy.