x/tools/gopls: omit empty JSON-RPC error data #39736
Labels
FrozenDueToAge
gopls
Issues related to the Go language server, gopls.
Tools
This label describes issues relating to any tools in the x/tools repository.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
JSON-RPC errors always encode
data
as null. The spec states it may be omitted.What did you expect to see?
JSON-RPC errors should not encode
data
if empty.What did you see instead?
The text was updated successfully, but these errors were encountered: