Skip to content

Commit 4b84d50

Browse files
committed
Melhoria no middleware Handle-exception para interceptar a exceção gerada na API.
1 parent 2d2d0e6 commit 4b84d50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Horse.HandleException.pas

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ procedure Middleware(Req: THorseRequest; Res: THorseResponse; Next: {$IF DEFINED
100100

101101
function HandleException: THorseCallback; overload;
102102
begin
103-
Result := Middleware;
103+
Result := HandleException(nil);
104104
end;
105105

106106
function HandleException(const ACallback: TInterceptExceptionCallback): THorseCallback; overload;

0 commit comments

Comments
 (0)