[CLJ-1210] error message for (clojure.java.io/reader nil) — consistency for use with io/resource Created: 23/May/13 Updated: 13/Oct/15 Resolved: 12/Oct/15
|Affects Version/s:||Release 1.5|
|Fix Version/s:||Release 1.8|
|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:
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.
|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.
|Comment by Alex Miller [ 09/Oct/15 9:03 AM ]|
Added -2 patch that makes commit message conform to expectations, no other changes, attribution retained.
|Comment by Benjamin Peter [ 13/Oct/15 3:09 AM ]|
Thanks a lot.