diff --git a/Makefile b/Makefile index 4904317f..1d6db950 100644 --- a/Makefile +++ b/Makefile @@ -508,6 +508,6 @@ funcgen: lang/funcs/core/generated_funcs.go lang/funcs/core/generated_funcs.go: lang/funcs/funcgen/*.go lang/funcs/core/funcgen.yaml lang/funcs/funcgen/templates/generated_funcs.go.tpl @echo "Generating: funcs..." - @go run `find lang/funcs/funcgen/ -maxdepth 1 -type f -name '*.go' -not -name '*_test.go'` -templates=lang/funcs/funcgen/templates/generated_funcs.go.tpl 2>/dev/null + @go run `find lang/funcs/funcgen/ -maxdepth 1 -type f -name '*.go' -not -name '*_test.go'` -templates=lang/funcs/funcgen/templates/generated_funcs.go.tpl >/dev/null # vim: ts=8 diff --git a/lang/funcs/funcgen/main.go b/lang/funcs/funcgen/main.go index 3d327bb0..e9365a2e 100644 --- a/lang/funcs/funcgen/main.go +++ b/lang/funcs/funcgen/main.go @@ -20,6 +20,7 @@ package main import ( "flag" "log" + "os" ) var ( @@ -34,7 +35,10 @@ func main() { log.Fatalf("No package passed!") } + log.SetOutput(os.Stdout) err := parsePkg(*pkg, *filename, *templates) + log.SetOutput(os.Stderr) + if err != nil { log.Fatal(err) }