Skip to content

Commit

Permalink
don't throw an exception if the manifest file is missing
Browse files Browse the repository at this point in the history
  • Loading branch information
brettatoms committed Nov 17, 2024
1 parent e38aa9c commit 77bdf62
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Change Log

* 0.1.15 -- 2024-11-17
- Don't throw an exception if the manifest file can't be found on startup.

* 0.1.14 -- 2024-11-16
- Add missing dep

Expand Down
3 changes: 1 addition & 2 deletions src/zodiac/ext/assets.clj
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@

(defmethod ig/init-key ::assets [_ {:keys [manifest-path cache-manifest?]}]
(when-not (io/resource manifest-path)
(log/error "Could not load find the manifest on the classpath: " manifest-path)
(throw (ex-info "Could not load manifest-path." {:manifest-path manifest-path})))
(log/warn "Could not load find the manifest on the classpath: " manifest-path))

(let [url-for (fn [asset-name]
(let [manifest (some-> manifest-path
Expand Down

0 comments on commit 77bdf62

Please sign in to comment.