If for whatever reason (utils/mkdirs nil) was invoked, one would get java.lang.Exception: Couldn't create directories: which is not a very informative error.
I'd propose to make this defn's API akin to io/file's - which returns nil on nil inputs instead of throwing.
Unfortunately I'm not able to reproduce the bug that is causing these issues in the first place, namely https://github.com/clojure-emacs/cider/issues/3108. So I can't debug why (utils/mkdirs nil) was being invoked to begin with.
If for whatever reason
(utils/mkdirs nil)
was invoked, one would getjava.lang.Exception: Couldn't create directories:
which is not a very informative error.I'd propose to make this defn's API akin to
io/file
's - which returns nil on nil inputs instead of throwing.Unfortunately I'm not able to reproduce the bug that is causing these issues in the first place, namely https://github.com/clojure-emacs/cider/issues/3108. So I can't debug why
(utils/mkdirs nil)
was being invoked to begin with.