summaryrefslogtreecommitdiff
path: root/rtl/objpas/sysutils/sysstr.inc
diff options
context:
space:
mode:
Diffstat (limited to 'rtl/objpas/sysutils/sysstr.inc')
-rw-r--r--rtl/objpas/sysutils/sysstr.inc5
1 files changed, 2 insertions, 3 deletions
diff --git a/rtl/objpas/sysutils/sysstr.inc b/rtl/objpas/sysutils/sysstr.inc
index 9fbd76ebc2..0cccd3add4 100644
--- a/rtl/objpas/sysutils/sysstr.inc
+++ b/rtl/objpas/sysutils/sysstr.inc
@@ -896,12 +896,12 @@ end;
{$endif}
-Procedure DoFormatError (ErrCode : Longint);
+Procedure DoFormatError (ErrCode : Longint;const fmt:ansistring);
Var
S : String;
begin
//!! must be changed to contain format string...
- S:='';
+ S:=fmt;
Case ErrCode of
feInvalidFormat : raise EConvertError.Createfmt(SInvalidFormat,[s]);
feMissingArgument : raise EConvertError.Createfmt(SArgumentMissing,[s]);
@@ -909,7 +909,6 @@ begin
end;
end;
-
{ we've no templates, but with includes we can simulate this :) }
{$macro on}