mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-10-06 00:47:09 +03:00
provide more information in watcher-related errors
related to https://github.com/gitbutlerapp/gitbutler/issues/2657#issuecomment-2131307753 It turns out that the UI triggers `set_project_active()`, and then moves on and emits more commands, some of which depend on a watcher being present. The UI could wait, but even if it does the 'endless spinner' happens.
This commit is contained in:
parent
0ffa9e814c
commit
73c21f2e42
@ -117,7 +117,11 @@ impl Watchers {
|
||||
{
|
||||
handle.post(action).await.context("failed to post event")
|
||||
} else {
|
||||
Err(anyhow::anyhow!("watcher not found",))
|
||||
Err(anyhow::anyhow!(
|
||||
"matching watcher to post event not found, wanted {wanted}, got {actual:?}",
|
||||
wanted = action.project_id(),
|
||||
actual = watcher.as_ref().map(|w| w.project_id())
|
||||
))
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user