fcl-web: Incompatible WriteLn call in fphttpserver.pp
Original Reporter info from Mantis: uaply
-
Reporter name:
Original Reporter info from Mantis: uaply
- Reporter name:
Description:
There is a piece of code where writeln is called:
{ TFPCustomHttpServer } procedure TFPCustomHttpServer.HandleRequestError(Sender: TObject; E: Exception); begin If Assigned(FOnRequestError) then try FOnRequestError(Sender,E); except // Do not let errors in user code escape. end else Writeln('Unhandled exception : ',E.ClassName,' : ',E.Message); end;
There should be call to 'SysUtils.ShowException(E, ExceptAddr);' instead,
which will provide meaningful fallback if console is not available.
Mantis conversion info:
- Mantis ID: 24814
- Version: 2.7.1
- Fixed in version: 2.6.4
- Fixed in revision: 25472 (#70753db8)
- Target version: 3.0.0