From 1b74dbbfaa503d3bb38f65f60c2d74e9edac85cf Mon Sep 17 00:00:00 2001 From: Michiel de Mare Date: Mon, 9 Sep 2024 13:39:38 +0200 Subject: [PATCH] Improved foutmelding opl eenh not found (#329) --- src/nl/surf/eduhub_rio_mapper/commands/processing.clj | 2 +- test/nl/surf/eduhub_rio_mapper/interaction_test.clj | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/nl/surf/eduhub_rio_mapper/commands/processing.clj b/src/nl/surf/eduhub_rio_mapper/commands/processing.clj index f05c2019..bcc6604c 100644 --- a/src/nl/surf/eduhub_rio_mapper/commands/processing.clj +++ b/src/nl/surf/eduhub_rio_mapper/commands/processing.clj @@ -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 diff --git a/test/nl/surf/eduhub_rio_mapper/interaction_test.clj b/test/nl/surf/eduhub_rio_mapper/interaction_test.clj index 0b12040d..4228f78e 100644 --- a/test/nl/surf/eduhub_rio_mapper/interaction_test.clj +++ b/test/nl/surf/eduhub_rio_mapper/interaction_test.clj @@ -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)))]