mirror of
https://github.com/gohugoio/hugo.git
synced 2024-12-26 14:03:29 +00:00
commands: t.Error => t.Errorf
This commit is contained in:
parent
f039e3be9e
commit
5f443bd45b
1 changed files with 1 additions and 1 deletions
|
@ -52,7 +52,7 @@ func TestUndraftContent(t *testing.T) {
|
|||
res, err := undraftContent(p)
|
||||
if test.expectedErr != "" {
|
||||
if err == nil {
|
||||
t.Error("[%d] Expected error, got none", i)
|
||||
t.Errorf("[%d] Expected error, got none", i)
|
||||
continue
|
||||
}
|
||||
if err.Error() != test.expectedErr {
|
||||
|
|
Loading…
Reference in a new issue