about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorMorgan <m@morganastra.me>2015-03-09 05:14:47 +0000
committerMorgan <m@morganastra.me>2015-03-09 05:14:47 +0000
commit0150d805f3ebc3a2a9d003d502444ba1b18e70a3 (patch)
treecf900e75a0e8e5f2f9ed60afab06a0c47615ed14 /src
parente3efc283bed46b3b977efb6d20f7f98c400a8a55 (diff)
add some more pronouns, fix a typo
Diffstat (limited to 'src')
-rw-r--r--src/pronouns/web.clj6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pronouns/web.clj b/src/pronouns/web.clj
index 971c69b..665618d 100644
--- a/src/pronouns/web.clj
+++ b/src/pronouns/web.clj
@@ -39,8 +39,8 @@
               (str subject " brought " possessive-determiner " frisbee")
               (str "at least I think it was " possessive-pronoun)
               (str subject " threw it to " reflexive)]))
-  ([error-message]
-     error-message))
+  ([nothing]
+     "We couldn't find those pronouns in our database, please let us know to add them!"))
 
 (defroutes app-routes
   (GET "/" []
@@ -50,7 +50,7 @@
   (GET "/*" {params :params}
        {:status 200
         :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))})
 
   (ANY "*" []