From 30d4e781dc2e2f24658fc567a09f47e3baf64b63 Mon Sep 17 00:00:00 2001 From: Morgan Date: Mon, 9 Mar 2015 05:34:07 +0000 Subject: [PATCH] print proper error page for unknown pronouns --- src/pronouns/web.clj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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")))))