print proper error page for unknown pronouns

This commit is contained in:
Morgan 2015-03-09 05:34:07 +00:00
parent 0150d805f3
commit 30d4e781dc

View File

@ -51,7 +51,7 @@
{:status 200 {:status 200
:headers {"Content-Type" "text/plain"} :headers {"Content-Type" "text/plain"}
:body (let [pronouns (parse-pronouns-with-lookup (:* params))] :body (let [pronouns (parse-pronouns-with-lookup (:* params))]
(apply render-examples-page pronouns))}) (apply render-examples-page (or pronouns [:error])))})
(ANY "*" [] (ANY "*" []
(route/not-found (slurp (io/resource "404.html"))))) (route/not-found (slurp (io/resource "404.html")))))