Skip to content

Commit

Permalink
one point oh.
Browse files Browse the repository at this point in the history
  • Loading branch information
technomancy committed Mar 13, 2013
1 parent fbf33ef commit 130ee30
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 45 deletions.
4 changes: 2 additions & 2 deletions project.clj
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
(defproject syme "1.0.0-SNAPSHOT"
:description "FIXME: write description"
(defproject syme "1.0.0"
:description "Instant collaboration on GitHub projects over tmux."
:url "http://syme.herokuapp.com"
:license "Eclipse Public License 1.0"
:dependencies [[org.clojure/clojure "1.4.0"]
Expand Down
21 changes: 0 additions & 21 deletions resources/404.html

This file was deleted.

20 changes: 0 additions & 20 deletions resources/500.html

This file was deleted.

6 changes: 4 additions & 2 deletions src/syme/web.clj
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,8 @@
:status 200
:body (html/faq username)})
(ANY "*" []
(route/not-found (slurp (io/resource "404.html"))))))
(route/not-found
(html/layout "<h3>404</h3><p>Couldn't find that; sorry.</p>" nil)))))

(defn wrap-error-page [handler]
(fn [req]
Expand All @@ -107,7 +108,8 @@
(.printStackTrace e)
{:status (:status (ex-data e) 500)
:headers {"Content-Type" "text/html"}
:body (:body (ex-data e) (slurp (io/resource "500.html")))}))))
:body (html/layout (str "<h3>500</h3><p>Oops. "
"There was a problem; sorry.</p>") nil)}))))

(defn wrap-login [handler]
(fn [req]
Expand Down

0 comments on commit 130ee30

Please sign in to comment.