From 9a2d41aa12ec8c88829ffd7d8ee8349cabb17477 Mon Sep 17 00:00:00 2001 From: Daniel Pokorny Date: Tue, 23 Jan 2024 10:37:35 +0100 Subject: [PATCH] fix missing rich text entity error wording --- .../importExportEntities/entities/utils/richText.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/commands/importExportEntities/entities/utils/richText.ts b/src/commands/importExportEntities/entities/utils/richText.ts index 1ed75468..29f1a36d 100644 --- a/src/commands/importExportEntities/entities/utils/richText.ts +++ b/src/commands/importExportEntities/entities/utils/richText.ts @@ -40,7 +40,7 @@ export const replaceImportRichTextReferences = ( replaceAssetId: (oldAssetId, asInternalId, asExternalId) => { const newAssetId = context.assetIdsByOldIds.get(oldAssetId); if (!newAssetId) { - logWarning(logOptions, "standard", `Found asset id "${oldAssetId}" in rich text that doesn't exist.`); + logWarning(logOptions, "standard", `Found asset id "${oldAssetId}" of a non-existent asset in the rich text.`); return asExternalId(oldAssetId); } @@ -54,7 +54,7 @@ export const replaceImportRichTextReferences = ( const newItemId = context.contentItemContextByOldIds.get(oldItemId); if (!newItemId) { - logWarning(logOptions, "standard", `Found item id "${oldItemId}" in rich text that doesn't exist.`); + logWarning(logOptions, "standard", `Found item id "${oldItemId}" of a non-existent item in the rich text.`); return asExternalId(oldItemId); } @@ -63,7 +63,7 @@ export const replaceImportRichTextReferences = ( replaceItemLinkId: (oldItemId, asInternalId, asExternalId) => { const newItemId = context.contentItemContextByOldIds.get(oldItemId); if (!newItemId) { - logWarning(logOptions, "standard", `Found a link to item id "${oldItemId}" in rich text that doesn't exist.`); + logWarning(logOptions, "standard", `Found a link to a non-existent item id "${oldItemId}" in the rich text.`); return asExternalId(oldItemId); }