From 7d22137a811cd68939a9584eb307717edd085aef Mon Sep 17 00:00:00 2001 From: Kateryna_Senchenko Date: Thu, 29 Aug 2024 15:08:11 +0300 Subject: [PATCH] Update error message --- .../handlers/actions/ReplaceInstanceEventHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/folio/inventory/dataimport/handlers/actions/ReplaceInstanceEventHandler.java b/src/main/java/org/folio/inventory/dataimport/handlers/actions/ReplaceInstanceEventHandler.java index fdce60a6e..c933ca763 100644 --- a/src/main/java/org/folio/inventory/dataimport/handlers/actions/ReplaceInstanceEventHandler.java +++ b/src/main/java/org/folio/inventory/dataimport/handlers/actions/ReplaceInstanceEventHandler.java @@ -121,7 +121,7 @@ public CompletableFuture handle(DataImportEventPayload d Instance instanceToUpdate = Instance.fromJson(new JsonObject(dataImportEventPayload.getContext().get(INSTANCE.value()))); if (instanceToUpdate.getSource() != null && instanceToUpdate.getSource().equals(LINKED_DATA.getValue())) { - String msg = format("handle:: Failed to update Instance with id = %s. Instances with source=LINKED_DATA cannot be edited", instanceToUpdate.getId()); + String msg = format("handle:: Failed to update Instance with id = %s. Instance with source=LINKED_DATA cannot be updated using Data Import. Please use Linked Data Editor.", instanceToUpdate.getId()); LOGGER.warn(msg); return CompletableFuture.failedFuture(new DataImportException(msg)); }