Skip to content

Commit

Permalink
Update error message
Browse files Browse the repository at this point in the history
  • Loading branch information
KaterynaSenchenko committed Aug 29, 2024
1 parent 6d09dae commit 7d22137
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ public CompletableFuture<DataImportEventPayload> 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));
}
Expand Down

0 comments on commit 7d22137

Please sign in to comment.