Skip to content

Commit

Permalink
Send failed RPC calls through the logging framework.
Browse files Browse the repository at this point in the history
  • Loading branch information
Julian committed Jan 15, 2025
1 parent b5ff076 commit 76c11ed
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lua/lean/rpc.lua
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,16 @@ function Session:call(pos, method, params)
end
end
register(result)

if err then
log:error {
message = 'RPC error.',
method = method,
params = params,
error = err,
result = result,
}
end
return result, err
end

Expand Down

0 comments on commit 76c11ed

Please sign in to comment.