소스 검색

* Write exception to console when no response is initialized

git-svn-id: trunk@13053 -
joost 16 년 전
부모
커밋
272cd13af6
1개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  1. 4 1
      packages/fcl-web/src/custcgi.pp

+ 4 - 1
packages/fcl-web/src/custcgi.pp

@@ -153,7 +153,10 @@ end;
 
 Procedure TCustomCGIApplication.ShowException(E: Exception);
 begin
-  ShowRequestException(FResponse,E);
+  if assigned(FResponse) then
+    ShowRequestException(FResponse,E)
+  else
+    inherited ShowException(E);
 end;
 
 Function TCustomCGIApplication.GetEmail : String;