diff options
author | Stuart Halloway <stu@thinkrelevance.com> | 2010-10-01 11:00:52 -0400 |
---|---|---|
committer | Stuart Halloway <stu@thinkrelevance.com> | 2010-10-11 09:21:59 -0400 |
commit | 1f93d12e5a67eb22be637a7b9712f59a8c485f2a (patch) | |
tree | 085a67745bde83b072c8f41a40d60479e93fc184 | |
parent | 140a9866646d60158da485e6229d3afba01dcb4c (diff) |
correct exception for invalid url->file conversion, #430
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
-rw-r--r-- | src/clj/clojure/java/io.clj | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/clj/clojure/java/io.clj b/src/clj/clojure/java/io.clj index 5f36755e..4279569d 100644 --- a/src/clj/clojure/java/io.clj +++ b/src/clj/clojure/java/io.clj @@ -54,7 +54,7 @@ (as-file [u] (if (= "file" (.getProtocol u)) (as-file (.getPath u)) - (throw (IllegalArgumentException. "Not a file: " u)))) + (throw (IllegalArgumentException. (str "Not a file: " u))))) URI (as-url [u] (.toURL u)) |