Skip to content

Commit

Permalink
Improved foutmelding opl eenh not found (#329)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdemare committed Sep 9, 2024
1 parent ca32e2b commit 1b74dbb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/nl/surf/eduhub_rio_mapper/commands/processing.clj
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
;; that cannot be resolved.
(when (or (and (nil? oe-code) (not resolve-eduspec) (= "upsert" action))
(and (nil? oe-code) resolve-eduspec (= "delete" action)))
(throw (ex-info (str "No education specification found with id: " edu-id)
(throw (ex-info (str "No 'opleidingseenheid' found in RIO with eigensleutel: " edu-id)
{:code oe-code
:type type
:action action
Expand Down
2 changes: 1 addition & 1 deletion test/nl/surf/eduhub_rio_mapper/interaction_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@
[7 "delete" :program program-id goedgekeurd?]
[8 "delete" :eduspec eduspec-parent-id goedgekeurd?]
[9 "upsert" :program program-id #(= (-> % :errors :message)
(str "No education specification found with id: " eduspec-parent-id))]]]
(str "No 'opleidingseenheid' found in RIO with eigensleutel: " eduspec-parent-id))]]]
(doseq [[idx action ootype id pred?] commands]
(testing (str "Command " idx " " action " " id)
(binding [http-utils/*vcr* (vcr "test/fixtures/interaction" idx (str action "-" (name ootype)))]
Expand Down

0 comments on commit 1b74dbb

Please sign in to comment.