Skip to content

Commit f5f3c02

Browse files
author
Matrix-X
committed
fix(kernel): return nil when error occurs
1 parent 55c978b commit f5f3c02

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/kernel/serverGuard.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,9 @@ func (serverGuard *ServerGuard) Serve(request *http.Request) (response *http.Res
138138
}
139139

140140
response, err = validatedGuard.Resolve(request)
141+
if err != nil {
142+
return nil, err
143+
}
141144

142145
logger.Info("Server response created:", "content", response.ContentLength)
143146

0 commit comments

Comments
 (0)