Skip to content

Commit

Permalink
Merge pull request #472 from clojars/yeller-report-false
Browse files Browse the repository at this point in the history
Stop reporting exceptions from redeploying non-snapshots
  • Loading branch information
tobias committed Jan 15, 2016
2 parents 453a90c + 6878529 commit 2ea43cb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/clojars/errors.clj
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@
(report-error reporter e nil))
([reporter e extra]
(let [id (error-id)]
(-report-error reporter e extra id)
(when-not (false? (:report? (ex-data e)))
(-report-error reporter e extra id))
id)))

(defn report-ring-error [reporter e request]
Expand Down
2 changes: 1 addition & 1 deletion src/clojars/routes/repo.clj
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
(.exists (io/file (config :repo) (string/replace group-id "." "/")
artifact-id version filename)))
(throw (ex-info "redeploying non-snapshots is not allowed (see http://git.io/vO2Tg)"
{}))))
{:report? false}))))

(defn validate-deploy [group-id artifact-id version filename]
(try
Expand Down

0 comments on commit 2ea43cb

Please sign in to comment.