[CLJ-1210] error message for (clojure.java.io/reader nil) — consistency for use with io/resource Created: 23/May/13 Updated: 11/May/15
|Affects Version/s:||Release 1.5|
|Labels:||checkargs, errormsgs, ft, io|
|Patch:||Code and Test|
This seems to be a common idiom:
When a file is available these are the behaviors:
If the file (resource) is unavailable:
The main enhancement request is to have a better error message from `(clojure.java.io/reader nil)`.
Approach: Extend IOFactory to nil, providing error messages consistent with the default error messages provided for Object. After:
|Comment by Alexander Redington [ 14/Feb/14 3:13 PM ]|
This patch extends IOFactory to nil, providing error messages consistent with the default error messages provided for Object.
|Comment by Benjamin Peter [ 15/Feb/14 1:31 PM ]|
Looks like a good solution to me as a user. Thanks for the effort!
|Comment by Dennis Schridde [ 12/Jul/14 2:01 AM ]|
I would also be interested in a solution, as I am currently running into this with the ClojureScript compiler.