@@ -276,7 +276,13 @@ impl Notification {
276 lsp::notification::PublishDiagnostics::METHOD => {
276 lsp::notification::PublishDiagnostics::METHOD => {
277 let params: lsp::PublishDiagnosticsParams = params
277 let params: lsp::PublishDiagnosticsParams = params
279− .expect("Failed to parse PublishDiagnostics params");
279+ .map_err(|err| {
281+ "received malformed PublishDiagnostic from Language Server: {}",
281 // TODO: need to loop over diagnostics and distinguish them by URI
287 // TODO: need to loop over diagnostics and distinguish them by URI
282 Self::PublishDiagnostics(params)
288 Self::PublishDiagnostics(params)