Procházet zdrojové kódy

* Write exception to console when no response is initialized

git-svn-id: trunk@13053 -
joost před 16 roky
rodič
revize
272cd13af6
1 změnil soubory, kde provedl 4 přidání a 1 odebrání
  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;