Ver código fonte

* Write exception to console when no response is initialized

git-svn-id: trunk@13053 -
joost 16 anos atrás
pai
commit
272cd13af6
1 arquivos alterados com 4 adições e 1 exclusões
  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);
 Procedure TCustomCGIApplication.ShowException(E: Exception);
 begin
 begin
-  ShowRequestException(FResponse,E);
+  if assigned(FResponse) then
+    ShowRequestException(FResponse,E)
+  else
+    inherited ShowException(E);
 end;
 end;
 
 
 Function TCustomCGIApplication.GetEmail : String;
 Function TCustomCGIApplication.GetEmail : String;