Skip to content
This repository has been archived by the owner on Feb 24, 2024. It is now read-only.

Commit

Permalink
Remove logger need from the render package (#1186)
Browse files Browse the repository at this point in the history
  • Loading branch information
stanislas-m authored and markbates committed Jul 23, 2018
1 parent 749ecba commit e448cf1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions render/template.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package render

import (
"fmt"
"html/template"
"io"
"os"
Expand All @@ -9,7 +10,6 @@ import (
"strings"

"github.com/pkg/errors"
"github.com/sirupsen/logrus"

// this blank import is here because dep doesn't
// handle transitive dependencies correctly
Expand Down Expand Up @@ -119,8 +119,7 @@ func (s templateRenderer) exec(name string, data Data) (template.HTML, error) {
for _, ext := range s.exts(name) {
te, ok := s.TemplateEngines[ext]
if !ok {
logrus.Errorf("could not find a template engine for %s\n", ext)
continue
return "", fmt.Errorf("could not find a template engine for %s", ext)
}
body, err = te(body, data, helpers)
if err != nil {
Expand Down

0 comments on commit e448cf1

Please sign in to comment.