This seems to be a common idiom:
When a file is available these are the behaviors:
If the file (resource) is unavailable:
This situation would be improved with 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.
This patch extends IOFactory to nil, providing error messages consistent with the default error messages provided for Object.
Looks like a good solution to me as a user. Thanks for the effort!
Comment made by: devurandom
I would also be interested in a solution, as I am currently running into this with the ClojureScript compiler.
Added -2 patch that makes commit message conform to expectations, no other changes, attribution retained.
Thanks a lot.