mirror of
https://github.com/speatzle/nfsense.git
synced 2025-05-11 19:08:20 +00:00
fix bad jsonrpc response on Method error
This commit is contained in:
parent
25684438e9
commit
6c598587b2
1 changed files with 1 additions and 0 deletions
|
@ -91,6 +91,7 @@ func (h *Handler) HandleRequest(ctx context.Context, s *session.Session, r io.Re
|
||||||
reqerr := res[1].Interface().(error)
|
reqerr := res[1].Interface().(error)
|
||||||
slog.Error("API Method", reqerr, "method", req.Method, "id", req.ID)
|
slog.Error("API Method", reqerr, "method", req.Method, "id", req.ID)
|
||||||
respondError(w, req.ID, ErrInternalError, reqerr)
|
respondError(w, req.ID, ErrInternalError, reqerr)
|
||||||
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
respondResult(w, req.ID, result)
|
respondResult(w, req.ID, result)
|
||||||
|
|
Loading…
Add table
Reference in a new issue