فهرست منبع

* 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;