about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMorgan <m@morganastra.me>2015-03-09 05:34:07 +0000
committerMorgan <m@morganastra.me>2015-03-09 05:34:07 +0000
commit30d4e781dc2e2f24658fc567a09f47e3baf64b63 (patch)
tree9595a4461d765e6eab218e1d05596b78e106de38
parent0150d805f3ebc3a2a9d003d502444ba1b18e70a3 (diff)
print proper error page for unknown pronouns
-rw-r--r--src/pronouns/web.clj2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pronouns/web.clj b/src/pronouns/web.clj
index 665618d..8e70e3b 100644
--- a/src/pronouns/web.clj
+++ b/src/pronouns/web.clj
@@ -51,7 +51,7 @@
        {:status 200
         :headers {"Content-Type" "text/plain"}
         :body (let [pronouns (parse-pronouns-with-lookup (:* params))]
-                (apply render-examples-page pronouns))})
+                (apply render-examples-page (or pronouns [:error])))})
 
   (ANY "*" []
        (route/not-found (slurp (io/resource "404.html")))))