Skip to content

Commit

Permalink
Notify reconnect error to user
Browse files Browse the repository at this point in the history
  • Loading branch information
RemcoSmitsDev committed Dec 26, 2024
1 parent b7a21cc commit 601dd66
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions crates/project/src/dap_store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -931,9 +931,16 @@ impl DapStore {
});

match task {
Ok(task) => match task.await.log_err() {
Some(_) => (true, None),
None => (false, None),
Ok(task) => match task.await {
Ok(_) => (true, None),
Err(error) => {
this.update(&mut cx, |_, cx| {
cx.emit(DapStoreEvent::Notification(error.to_string()));
})
.log_err();

(false, None)
}
},
Err(_) => (false, None),
}
Expand Down

0 comments on commit 601dd66

Please sign in to comment.