Address security privacy review findings

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 9c2eebc4-dcd5-4b85-8113-90772d818900
This commit is contained in:
Jesper Schulz-Wedde 2026-07-14 11:08:45 +02:00
parent ec8f891954
commit d8f372453c
8 changed files with 14 additions and 14 deletions

View file

@ -5,7 +5,7 @@ codeunit 50209 "Privacy Sample GetLastError Bad"
AttachmentFailedErr: Label 'Attachment failed: %1', Comment = '%1 = underlying error';
begin
if not TryAddAttachment() then
Error(StrSubstNo(AttachmentFailedErr, GetLastErrorText(true)));
Error(StrSubstNo(AttachmentFailedErr, GetLastErrorText()));
end;
procedure AddAttachmentWithConcatenation()
@ -13,7 +13,7 @@ codeunit 50209 "Privacy Sample GetLastError Bad"
AttachmentFailedErr: Label 'Attachment failed: ';
begin
if not TryAddAttachment() then
Error(AttachmentFailedErr + GetLastErrorText(true));
Error(AttachmentFailedErr + GetLastErrorText());
end;
[TryFunction]