Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

More robust configuration file opening for core/-main.

  • Loading branch information...
commit 41b67efe80817f5c819f6829f6b48912274b58b6 1 parent 5b9bb6e
@aroemers authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 src/gluer/core.clj
View
6 src/gluer/core.clj
@@ -101,7 +101,9 @@
(if help
(display-help-text banner)
(if-let [config-file-name (first args)]
- (let [config (c/read-config (slurp config-file-name))]
+ (if-let [config (try (c/read-config (slurp config-file-name))
+ (catch java.io.IOException ioe))]
(with-redefs [*verbose* (or verbose (and (nil? verbose) (:verbose config)))]
- (check (:glue config))))
+ (check (:glue config)))
+ (println "Could not find or open file:" config-file-name))
(display-help-text banner)))))
Please sign in to comment.
Something went wrong with that request. Please try again.