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 50208 "Privacy Sample GetLastError Good"
AttachmentFailedErr: Label 'Failed to add the attachment: %1', Comment = '%1 = underlying error shown to the user';
begin
if not TryAddAttachment() then
Error(AttachmentFailedErr, GetLastErrorText(true));
Error(AttachmentFailedErr, GetLastErrorText());
end;
[TryFunction]