Skip to content

Commit

Permalink
Send error messages to STDERR
Browse files Browse the repository at this point in the history
  • Loading branch information
bernerdschaefer committed Aug 29, 2018
1 parent 90ef12d commit f6371cd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,8 @@ func (l *Link) GoType() (string, bool) {
func fail(v interface{}, err error) {
el, _ := json.MarshalIndent(v, " ", " ")

fmt.Printf(
fmt.Fprintf(
os.Stderr,
"Error processing schema element:\n %s\n\nFailed with: %s\n",
el,
err,
Expand Down

0 comments on commit f6371cd

Please sign in to comment.