fix: verify apply duplicate and capture runtime failures
This commit is contained in:
@@ -218,6 +218,8 @@ public sealed class EntryPoint : IExtensionApplication
|
||||
}
|
||||
catch (System.Exception exception)
|
||||
{
|
||||
if (string.Equals(commandName, "PXP-OA", StringComparison.OrdinalIgnoreCase) && string.Equals(Environment.GetEnvironmentVariable("P_REC_ANNOT_RUNTIME_MODE"), "Apply", StringComparison.OrdinalIgnoreCase))
|
||||
ScriptDrivenFirstApplyAutomation.RecordApplyFailure(exception);
|
||||
RuntimeDiagnostics.Write("CommandFailed", "ERROR", operationId, commandName, exception.Message, exception, document);
|
||||
WriteUsage(operationId, commandName, exception.Message, document, null, stopwatch.ElapsedMilliseconds, exception);
|
||||
WriteEditor(document, $"\nP_Rec_Annot: безопасная диагностика завершилась ошибкой: {exception.Message}");
|
||||
|
||||
Reference in New Issue
Block a user