Skip to content

Commit

Permalink
add clj-kondo linting - review
Browse files Browse the repository at this point in the history
now logging, rather than swallowing, exceptions
  • Loading branch information
lread committed Aug 22, 2019
1 parent 28c0573 commit 9f9bbc2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/cljdoc/server/api.clj
Expand Up @@ -35,7 +35,8 @@
(ingest/ingest-cljdoc-edn storage data)
(build-log/api-imported! build-tracker build-id ns-count)
(build-log/completed! build-tracker build-id))
(catch Exception _e
(catch Exception e
(log/errorf e "analysis job failed for project: %s, version: %s, build-id: %s" project version build-id)
(build-log/failed! build-tracker build-id "analysis-job-failed")))))

(defn kick-off-build!
Expand Down
4 changes: 2 additions & 2 deletions src/cljdoc/server/pedestal.clj
Expand Up @@ -305,8 +305,8 @@
artifact-id (util/clojars-id params)
group-id group-id)
release (try (repos/latest-release-version project)
(catch Exception _e
(log/warnf "Could not find release for %s" project)))]
(catch Exception e
(log/warnf e "Could not find release for %s" project)))]
(->> (if release
{:status 302
:headers {"Location" (routes/url-for :artifact/version
Expand Down

0 comments on commit 9f9bbc2

Please sign in to comment.