Skip to content

Commit 130ee30

Browse files
committed
one point oh.
1 parent fbf33ef commit 130ee30

File tree

4 files changed

+6
-45
lines changed

4 files changed

+6
-45
lines changed

project.clj

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
(defproject syme "1.0.0-SNAPSHOT"
2-
:description "FIXME: write description"
1+
(defproject syme "1.0.0"
2+
:description "Instant collaboration on GitHub projects over tmux."
33
:url "http://syme.herokuapp.com"
44
:license "Eclipse Public License 1.0"
55
:dependencies [[org.clojure/clojure "1.4.0"]

resources/404.html

-21
This file was deleted.

resources/500.html

-20
This file was deleted.

src/syme/web.clj

+4-2
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,8 @@
9898
:status 200
9999
:body (html/faq username)})
100100
(ANY "*" []
101-
(route/not-found (slurp (io/resource "404.html"))))))
101+
(route/not-found
102+
(html/layout "<h3>404</h3><p>Couldn't find that; sorry.</p>" nil)))))
102103

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

112114
(defn wrap-login [handler]
113115
(fn [req]

0 commit comments

Comments
 (0)