Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

More robust configuration file opening for core/-main.

  • Loading branch information...
commit 41b67efe80817f5c819f6829f6b48912274b58b6 1 parent 5b9bb6e
aroemers authored

Showing 1 changed file with 4 additions and 2 deletions. Show diff stats Hide diff stats

  1. +4 2 src/gluer/core.clj
6 src/gluer/core.clj
@@ -101,7 +101,9 @@
101 101 (if help
102 102 (display-help-text banner)
103 103 (if-let [config-file-name (first args)]
104   - (let [config (c/read-config (slurp config-file-name))]
  104 + (if-let [config (try (c/read-config (slurp config-file-name))
  105 + (catch java.io.IOException ioe))]
105 106 (with-redefs [*verbose* (or verbose (and (nil? verbose) (:verbose config)))]
106   - (check (:glue config))))
  107 + (check (:glue config)))
  108 + (println "Could not find or open file:" config-file-name))
107 109 (display-help-text banner)))))

0 comments on commit 41b67ef

Please sign in to comment.
Something went wrong with that request. Please try again.