tpl: Add missing printf param in t.Errorf call

This commit is contained in:
Cameron Moore 2016-03-16 14:54:06 -05:00 committed by Bjørn Erik Pedersen
parent b0326a1c0f
commit 600558273e

View file

@ -16,8 +16,6 @@ package tpl
import ( import (
"bytes" "bytes"
"errors" "errors"
"github.com/spf13/afero"
"github.com/spf13/hugo/hugofs"
"html/template" "html/template"
"io/ioutil" "io/ioutil"
"os" "os"
@ -25,6 +23,9 @@ import (
"runtime" "runtime"
"strings" "strings"
"testing" "testing"
"github.com/spf13/afero"
"github.com/spf13/hugo/hugofs"
) )
// Some tests for Issue #1178 -- Ace // Some tests for Issue #1178 -- Ace
@ -151,7 +152,7 @@ func TestAddTemplateFileWithMaster(t *testing.T) {
resultTpl := templ.Lookup(finalTplName) resultTpl := templ.Lookup(finalTplName)
if resultTpl == nil { if resultTpl == nil {
t.Errorf("[%d] AddTemplateFileWithMaster: Result teamplate not found") t.Errorf("[%d] AddTemplateFileWithMaster: Result template not found", i)
continue continue
} }