diff --git a/deps.edn b/deps.edn index b0e78752..ad3e8d8c 100644 --- a/deps.edn +++ b/deps.edn @@ -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" diff --git a/src/babashka/impl/error_handler.clj b/src/babashka/impl/error_handler.clj index b11218ba..6492c5ae 100644 --- a/src/babashka/impl/error_handler.clj +++ b/src/babashka/impl/error_handler.clj @@ -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 "" (:expression opts) "" (:preloads opts)