Skip to content

Commit

Permalink
add make-var-description to helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
darwin committed Oct 16, 2016
1 parent d2944ee commit 6894a82
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/lib/env_config/impl/helpers.clj
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,8 @@
(assoc m k v)))
(dissoc m k))
m))

(defn ^:dynamic make-var-description [var-meta]
(let [orig-name (or (:var-name var-meta) "?")
orig-value (:var-value var-meta)]
(str "variable '" orig-name "' with value " (pr-str orig-value))))

0 comments on commit 6894a82

Please sign in to comment.