From: Cameron Moore Date: Tue, 28 Aug 2018 20:49:57 +0000 (-0500) Subject: hugolib: Add missing error checks X-Git-Tag: v0.49~65 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=0665a3951be6ffc2551ef6664856da4cfccd45fa;p=brevno-suite%2Fhugo hugolib: Add missing error checks --- diff --git a/hugolib/filesystems/basefs_test.go b/hugolib/filesystems/basefs_test.go index 62a58955..ffa430ad 100644 --- a/hugolib/filesystems/basefs_test.go +++ b/hugolib/filesystems/basefs_test.go @@ -239,6 +239,7 @@ func TestStaticFs(t *testing.T) { p, err := paths.New(fs, v) assert.NoError(err) bfs, err := NewBase(p) + assert.NoError(err) sfs := bfs.StaticFs("en") checkFileContent(sfs, "f1.txt", assert, "Hugo Rocks!") checkFileContent(sfs, "f2.txt", assert, "Hugo Themes Still Rocks!") @@ -281,6 +282,7 @@ func TestStaticFsMultiHost(t *testing.T) { p, err := paths.New(fs, v) assert.NoError(err) bfs, err := NewBase(p) + assert.NoError(err) enFs := bfs.StaticFs("en") checkFileContent(enFs, "f1.txt", assert, "Hugo Rocks!") checkFileContent(enFs, "f2.txt", assert, "Hugo Themes Still Rocks!")