We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8fa8099 commit c7559c8Copy full SHA for c7559c8
Src/Horse.HandleException.pas
@@ -69,9 +69,8 @@ procedure HandleException(Req: THorseRequest; Res: THorseResponse; Next: {$IF DE
69
on E: Exception do
70
begin
71
LJSON := TJSONObject.Create;
72
- LJSON.{$IF DEFINED(FPC)}Add{$ELSE}AddPair{$ENDIF}('error', E.ClassName);
73
- LJSON.{$IF DEFINED(FPC)}Add{$ELSE}AddPair{$ENDIF}('description', E.Message);
74
- SendError(Res, LJSON, Integer(THTTPStatus.BadRequest));
+ LJSON.{$IF DEFINED(FPC)}Add{$ELSE}AddPair{$ENDIF}('error', E.Message);
+ SendError(Res, LJSON, Integer(THTTPStatus.InternalServerError));
75
end;
76
77
0 commit comments