mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-09 16:49:00 +02:00
+ add format placeholder for the type's name
git-svn-id: trunk@41931 -
This commit is contained in:
parent
8a23e813ca
commit
75baf343d6
@ -717,7 +717,7 @@ begin
|
||||
TStringArray(AP)[I]:=AValue.Strings[i];
|
||||
end;
|
||||
else
|
||||
Raise ERESTAPI.CreateFmt('%s: unsupported array element type : ',[ClassName,GetEnumName(TypeInfo(TTypeKind),Ord(ET^.Kind))]);
|
||||
Raise ERESTAPI.CreateFmt('%s: unsupported array element type : %s',[ClassName,GetEnumName(TypeInfo(TTypeKind),Ord(ET^.Kind))]);
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
@ -1041,7 +1041,7 @@ begin
|
||||
For I:=0 to Length(TStringArray(AP))-1 do
|
||||
A.Add(TJSONString.Create(TStringArray(AP)[I]));
|
||||
else
|
||||
Raise ERESTAPI.CreateFmt('%s: unsupported array element type : ',[ClassName,GetEnumName(TypeInfo(TTypeKind),Ord(ET^.Kind))]);
|
||||
Raise ERESTAPI.CreateFmt('%s: unsupported array element type : %s',[ClassName,GetEnumName(TypeInfo(TTypeKind),Ord(ET^.Kind))]);
|
||||
end;
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user