Skip to content

Commit 235c909

Browse files
committed
Also panic on status warnings
1 parent 25635ad commit 235c909

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/rust-analyzer/tests/slow-tests/support.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -255,8 +255,8 @@ impl Server {
255255
.clone()
256256
.extract::<lsp_ext::ServerStatusParams>("experimental/serverStatus")
257257
.unwrap();
258-
if status.health == lsp_ext::Health::Error {
259-
panic!("server errored while loading workspace: {:?}", status.message);
258+
if status.health != lsp_ext::Health::Ok {
259+
panic!("server errored/warned while loading workspace: {:?}", status.message);
260260
}
261261
status.quiescent
262262
}

0 commit comments

Comments
 (0)