2
0
Эх сурвалжийг харах

* Write exception to console when no response is initialized

git-svn-id: trunk@13053 -
joost 16 жил өмнө
parent
commit
272cd13af6

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