Browse Source

* Send code 500 in case of exception.

git-svn-id: trunk@17597 -
michael 14 years ago
parent
commit
86ff2a08ba
1 changed files with 2 additions and 0 deletions
  1. 2 0
      packages/fcl-web/src/base/custweb.pp

+ 2 - 0
packages/fcl-web/src/base/custweb.pp

@@ -272,6 +272,8 @@ begin
     end;
     end;
   If (not R.HeadersSent) then
   If (not R.HeadersSent) then
     begin
     begin
+    R.Code:=500;
+    R.CodeText:='Application error '+E.ClassName;
     R.ContentType:='text/html';
     R.ContentType:='text/html';
     end;
     end;
   If (R.ContentType='text/html') then
   If (R.ContentType='text/html') then