projects
/
brevno-suite
/
hugo
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7468292
)
Proper handling of 404 page return value
author
spf13
<steve.francia@gmail.com>
Mon, 7 Oct 2013 13:24:13 +0000
(09:24 -0400)
committer
spf13
<steve.francia@gmail.com>
Mon, 7 Oct 2013 13:24:13 +0000
(09:24 -0400)
hugolib/site.go
patch
|
blob
|
history
diff --git
a/hugolib/site.go
b/hugolib/site.go
index 2e28b3f0fec4fefe39a6fb4e9bbfdf2639cf88f9..ee4add770570470a00cc72dc90ef57e5e7421b44 100644
(file)
--- a/
hugolib/site.go
+++ b/
hugolib/site.go
@@
-539,7
+539,9
@@
func (s *Site) RenderHomePage() error {
return err
}
err = s.WritePublic("404.html", x)
- return err
+ if err != nil {
+ return err
+ }
}
return nil