Skip to content

Commit

Permalink
Make all Throwable parameters use the same name (preparation for #2126)
Browse files Browse the repository at this point in the history
Whereas the names `e` and `ex` are quite similar, they can still
generate some confusion.
  • Loading branch information
allentiak committed Dec 13, 2024
1 parent 3fc532f commit 23f56ac
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions modules/rest-util/src/blaze/middleware/fhir/output.clj
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@
(defn- generate-xml* [response]
(try
(update response :body generate-xml**)
(catch Throwable e
(catch Throwable ex
(assoc response
:body (generate-error generate-xml** e)
:body (generate-error generate-xml** ex)
:status 500))))

(defn- generate-xml [response]
Expand All @@ -66,9 +66,9 @@
(defn- generate-binary* [response]
(try
(update response :body generate-binary**)
(catch Throwable e
(catch Throwable ex
(assoc response
:body (generate-error identity e)
:body (generate-error identity ex)
:status 500))))

(defn- generate-binary [response]
Expand Down

0 comments on commit 23f56ac

Please sign in to comment.