diff options
Diffstat (limited to 'hugolib/integrationtest_builder.go')
-rw-r--r-- | hugolib/integrationtest_builder.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/hugolib/integrationtest_builder.go b/hugolib/integrationtest_builder.go index 58e751892..c3fb9fffc 100644 --- a/hugolib/integrationtest_builder.go +++ b/hugolib/integrationtest_builder.go @@ -169,8 +169,7 @@ func (s *IntegrationTestBuilder) destinationExists(filename string) bool { } func (s *IntegrationTestBuilder) AssertIsFileError(err error) { - var ferr *herrors.ErrorWithFileContext - s.Assert(err, qt.ErrorAs, &ferr) + s.Assert(err, qt.ErrorAs, new(herrors.FileError)) } func (s *IntegrationTestBuilder) AssertRenderCountContent(count int) { |