mirror of
https://github.com/gohugoio/hugo.git
synced 2025-03-23 07:01:34 +00:00
Proper handling of 404 page return value
This commit is contained in:
parent
7468292c4e
commit
5e14af957a
1 changed files with 3 additions and 1 deletions
|
@ -539,7 +539,9 @@ func (s *Site) RenderHomePage() error {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
err = s.WritePublic("404.html", x)
|
err = s.WritePublic("404.html", x)
|
||||||
return err
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
|
|
Loading…
Reference in a new issue