[#4498] fixed OnAfterApiError nil error reference

This commit is contained in:
Gani Georgiev committed 2024-03-06 11:06:39 +02:00
1 parent 1eeacf0204
commit 6695aba758
2 files changed
+3 -1

No files matched your search

+1 -1
View File
@@ -106,7 +106,7 @@ func InitApi(app core.App) (*echo.Echo, error) {
if hookErr == nil {
if err := app.OnAfterApiError().Trigger(event); err != nil {
app.Logger().Debug("OnAfterApiError failure", slog.String("error", hookErr.Error()))
app.Logger().Debug("OnAfterApiError failure", slog.String("error", err.Error()))
}
} else {
app.Logger().Debug("OnBeforeApiError error (truly rare case, eg. client already disconnected)", slog.String("error", hookErr.Error()))