[#587] Avoid NPE in error handling

This commit is contained in:
Michiel Borkent 2020-09-22 15:10:39 +02:00
parent e531300bae
commit 1efd3e6d3d
2 changed files with 2 additions and 2 deletions

View file

@ -1,7 +1,7 @@
{:paths ["src" "feature-xml" "feature-core-async"
"feature-yaml" "feature-csv" "feature-transit"
"feature-java-time" "feature-java-nio"
"feature-httpkit-client"
"feature-httpkit-client" "feature-httpkit-server"
"sci/src" "babashka.curl/src" "babashka.pods/src"
"babashka.nrepl/src"
"depstar/src"

View file

@ -29,7 +29,7 @@
(defn error-context [ex opts]
(let [{:keys [:file :line :column]} (ex-data ex)]
(when file
(when (and file line)
(when-let [content (case file
"<expr>" (:expression opts)
"<preloads>" (:preloads opts)