Skip to content

Commit

Permalink
Accept empty input
Browse files Browse the repository at this point in the history
  • Loading branch information
sclevine committed Jan 23, 2019
1 parent c0f7fbf commit e4c1437
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ func Run(stdin io.Reader, stdout, stderr io.Writer, osArgs []string) (code int)

rep, err := config.From.Decode(stdin)
if err != nil {
if err.Error() == "EOF" {
return 0
}
fmt.Fprintf(stderr, "Error parsing %s: %s\n", config.From, err)
return 1
}
Expand Down

0 comments on commit e4c1437

Please sign in to comment.