Don't panic, forward the error to the caller

This commit is contained in:
Christian Muehlhaeuser 2019-12-13 22:36:55 +01:00
parent 0058cd2aba
commit 3ddece16e4

View file

@ -133,9 +133,10 @@ func execute(cmd *cobra.Command, args []string) error {
if err != nil {
return err
}
out := r.RenderBytes(b)
out, err := r.RenderBytes(b)
fmt.Printf("%s", string(out))
return nil
return err
}
func main() {