From 99c2a15203603705d316c5db55255c8b2907301b Mon Sep 17 00:00:00 2001 From: yury Date: Thu, 7 Mar 2019 10:36:52 +0000 Subject: [PATCH] Merged revision(s) 41627 from trunk: * ppudump: Fixed formatting of a error message. ........ git-svn-id: branches/fixes_3_2@41629 - --- compiler/utils/ppuutils/ppuout.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/utils/ppuutils/ppuout.pp b/compiler/utils/ppuutils/ppuout.pp index c76184f0ae..e11724f8c5 100644 --- a/compiler/utils/ppuutils/ppuout.pp +++ b/compiler/utils/ppuutils/ppuout.pp @@ -1210,7 +1210,7 @@ begin while FOutBufPos > 0 do begin len:=FileWrite(FOutFileHandle, FOutBuf[i], FOutBufPos); if len < 0 then - raise Exception.CreateFmt('Error writing to file: ', [ {$if declared(GetLastOSError) } SysErrorMessage(GetLastOSError) {$else} 'I/O error' {$endif} ]); + raise Exception.CreateFmt('Error writing to file: %s', [ {$if declared(GetLastOSError) } SysErrorMessage(GetLastOSError) {$else} 'I/O error' {$endif} ]); Inc(i, len); Dec(FOutBufPos, len); end;