Skip to content

Commit

Permalink
Review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
mdemare committed Dec 20, 2024
1 parent ca1c2a3 commit 3e44a4f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/nl/surf/eduhub_rio_mapper/cli_commands.clj
Original file line number Diff line number Diff line change
Expand Up @@ -104,15 +104,14 @@
first
:kenmerkwaardeTekst)]
(when (not= nieuwe-sleutel (str uuid))
(println "Failed to set eigenOpleidingseenheidSleutel to" nieuwe-sleutel)
(println "The RIO Queue is DOWN")
(throw (ex-info "Failed to set eigenOpleidingseenheidSleutel" {:rio-queue-status :down}))
(System/exit 255))))

(println "The RIO Queue is UP")
(catch Exception ex
(when-let [ex-data (ex-data ex)]
(when (= :down (:rio-queue-status ex-data))
(println "The RIO Queue is DOWN")
(println "The RIO Queue is DOWN;" (.getMessage ex))
(System/exit 255)))
(println "An unexpected exception has occurred: " ex)
(System/exit 254))))
Expand Down

0 comments on commit 3e44a4f

Please sign in to comment.