fix: log error

This commit is contained in:
Jakub Panek 2022-10-05 18:06:50 +02:00
parent 9f6cc7c4b7
commit 34455a1436

View file

@ -114,7 +114,10 @@ fn handle_request(&mut self, _id: u64, method: String, params: Value) {
match method.as_str() {
Initialize::METHOD => {
let params: InitializeParams = serde_json::from_value(params).unwrap();
let _ = initialize(params);
match initialize(params) {
Ok(_) => (),
Err(e) => PLUGIN_RPC.stderr(&format!("plugin returned with error: {e}")),
}
}
_ => {}
}