ebkalderon / tower-lsp

Language Server Protocol implementation written in Rust
Apache License 2.0
951 stars 54 forks source link

Add Error::message to set a custom error message #408

Open ModProg opened 5 months ago

ModProg commented 5 months ago

This enables updating the message without creating a binding.

ModProg commented 5 months ago

Same could be considered for data.

This allows usages as return Err(jsonrpc::Error::internal_error().message("this is what happned"))