aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorey Prophitt <git@prophitt.me>2022-07-26 16:04:44 -0700
committerCorey Prophitt <git@prophitt.me>2022-07-26 16:04:44 -0700
commit35cb3c5f44ad885a6410a5038156016178bb31e3 (patch)
treea644785cb99acbc615be74bfd16aaa24e65f26d0
parente0d9439c262aa4ced705badd18bafe58b13f9075 (diff)
downloadprophitt.me-35cb3c5f44ad885a6410a5038156016178bb31e3.tar.gz
prophitt.me-35cb3c5f44ad885a6410a5038156016178bb31e3.zip
Added err check in index.go
-rw-r--r--internal/web/index.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/internal/web/index.go b/internal/web/index.go
index 8517500..2a326f6 100644
--- a/internal/web/index.go
+++ b/internal/web/index.go
@@ -66,7 +66,9 @@ func init() {
66 /* TODO: We could render a "not found" page instead of an error response. */ 66 /* TODO: We could render a "not found" page instead of an error response. */
67 http.NotFound(w, r) 67 http.NotFound(w, r)
68 } else { 68 } else {
69 exectmpl(w, "pages/index.tmpl", nil) 69 if err := exectmpl(w, "pages/index.tmpl", nil); err != nil {
70 log.Printf("index.go: error rendering page; %s", err)
71 }
70 } 72 }
71 }), 73 }),
72 }) 74 })