tpl: Add missing printf param in t.Errorf call
authorCameron Moore <moorereason@gmail.com>
Wed, 16 Mar 2016 19:54:06 +0000 (14:54 -0500)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Thu, 17 Mar 2016 19:07:41 +0000 (20:07 +0100)
tpl/template_test.go

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