Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

12 lines (9 sloc) 0.395 kb
(ns foreclojure.messages)
(defn load-props [file]
(into {} (doto (java.util.Properties.)
(.load (-> (Thread/currentThread)
(.getContextClassLoader)
(.getResourceAsStream file))))))
(def err-msg-map (load-props "error-messages.properties"))
(defn err-msg [key & args]
(apply format (cons (get err-msg-map key) args)))
Jump to Line
Something went wrong with that request. Please try again.