mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-13 23:59:10 +02:00
* Fixed ExceptionErrorMessage (string const didn't match Format() call)
This commit is contained in:
parent
5252a60769
commit
c1d0445cbc
@ -36,7 +36,7 @@ Const
|
|||||||
SDispatchError = 'No variant method call dispatch';
|
SDispatchError = 'No variant method call dispatch';
|
||||||
SDivByZero = 'Division by zero';
|
SDivByZero = 'Division by zero';
|
||||||
SEndOfFile = 'Read past end of file';
|
SEndOfFile = 'Read past end of file';
|
||||||
SExceptionErrorMessage = 'exception at %p';
|
SExceptionErrorMessage = 'exception at %p: %s';
|
||||||
SExternalException = 'External exception %x';
|
SExternalException = 'External exception %x';
|
||||||
SFileNotAssigned = 'File not assigned';
|
SFileNotAssigned = 'File not assigned';
|
||||||
SFileNotFound = 'File not found';
|
SFileNotFound = 'File not found';
|
||||||
@ -77,7 +77,10 @@ Const
|
|||||||
|
|
||||||
{
|
{
|
||||||
$Log$
|
$Log$
|
||||||
Revision 1.2 2003-11-26 20:12:08 michael
|
Revision 1.3 2004-09-14 01:13:43 sg
|
||||||
|
* Fixed ExceptionErrorMessage (string const didn't match Format() call)
|
||||||
|
|
||||||
|
Revision 1.2 2003/11/26 20:12:08 michael
|
||||||
+ New runerror 231 (exception stack error) and 232 (nothread support)
|
+ New runerror 231 (exception stack error) and 232 (nothread support)
|
||||||
|
|
||||||
Revision 1.1 2003/10/06 21:01:06 peter
|
Revision 1.1 2003/10/06 21:01:06 peter
|
||||||
|
@ -364,7 +364,7 @@ Var
|
|||||||
Len : Integer;
|
Len : Integer;
|
||||||
|
|
||||||
begin
|
begin
|
||||||
S:=Format(SExceptionErrorMessage,[ExceptObject.ClassName,ExceptAddr]);
|
S:=Format(SExceptionErrorMessage,[ExceptAddr,ExceptObject.ClassName]);
|
||||||
If ExceptObject is Exception then
|
If ExceptObject is Exception then
|
||||||
S:=Format('%s:'#10'%s',[S,Exception(ExceptObject).Message]);
|
S:=Format('%s:'#10'%s',[S,Exception(ExceptObject).Message]);
|
||||||
Len:=Length(S);
|
Len:=Length(S);
|
||||||
|
Loading…
Reference in New Issue
Block a user