about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2024-06-29 19:13:26 +0200
committerAlan Pearce2024-06-29 19:13:26 +0200
commitf73b8d6770b0e3c3f6ccb50983083c2a4dc81a5f (patch)
tree2a583068a044df730303df9eabe7f02c9e766cd7
parent01e9fdd7f65cd5beeb89e43befd4e595e6837a2d (diff)
downloadwebsite-f73b8d6770b0e3c3f6ccb50983083c2a4dc81a5f.tar.lz
website-f73b8d6770b0e3c3f6ccb50983083c2a4dc81a5f.tar.zst
website-f73b8d6770b0e3c3f6ccb50983083c2a4dc81a5f.zip
check error
-rw-r--r--internal/builder/template.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/internal/builder/template.go b/internal/builder/template.go
index b50861b..957ea60 100644
--- a/internal/builder/template.go
+++ b/internal/builder/template.go
@@ -171,6 +171,9 @@ func renderFeedStyles(source string) (*strings.Reader, error) {
 	err = tpl.Execute(w, map[string]interface{}{
 		"css": esc.String(),
 	})
+	if err != nil {
+		return nil, err
+	}
 
 	return strings.NewReader(w.String()), nil
 }