shithub: hugo

Download patch

ref: 5e14af957a5167770e8498df6ea356326aae3b0b
parent: 7468292c4e16d6fa621eb90a22655a5d038f95a6
author: spf13 <[email protected]>
date: Mon Oct 7 05:24:13 EDT 2013

Proper handling of 404 page return value

--- a/hugolib/site.go
+++ b/hugolib/site.go
@@ -539,7 +539,9 @@
 			return err
 		}
 		err = s.WritePublic("404.html", x)
-		return err
+		if err != nil {
+			return err
+		}
 	}
 
 	return nil