Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -631,10 +631,10 @@ public string Transform(PublishingPageTransformationInformation publishingPageTr
context.ExecuteQueryRetry();
pageListItemWasReloaded = true;
}
catch (Exception)
catch (Exception ex)
{
// Eat exceptions as this is not critical for the generated page
LogWarning(LogStrings.Warning_NonCriticalErrorDuringVersionStampAndPublish, LogStrings.Heading_ArticlePageHandling);
LogWarning(string.Format(LogStrings.Warning_NonCriticalErrorDuringPublishingPageVersionStampAndPublish, ex.Message), LogStrings.Heading_ArticlePageHandling);
}

// Update flags field to indicate this is a "migrated" page
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ public static class LogStrings
#region Warning messages

public const string Warning_NonCriticalErrorDuringVersionStampAndPublish = "Page could not be published as versioning is not enabled or version stamp could not be set.";
public const string Warning_NonCriticalErrorDuringPublishingPageVersionStampAndPublish = "Could not complete the non-critical page modernization version stamp or explicit publication. The page might still be published because both operations are sent in one request. Returned error: {0}. If this error states that the target page library requires minor versions, enable minor versioning and retry.";
public const string Warning_NonCriticalErrorDuringPublish = "There was a non critical issue during page update/publish. Returned error message: {0}";
public const string Warning_PostingAPageAsNewsRequiresPagePublishing = "Posting a page as news requires the page to be published. Turning on the PublishCreatedPage flag.";
public const string Warning_ContextValidationFailWithKeepPermissionsEnabled = "Keep Specific Permissions was set, however this is not currently supported when contexts are cross-farm/tenant - this feature has been disabled.";
Expand Down
Loading