mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-12-24 10:02:26 +03:00
pty-ws: log error when fail to listen
This commit is contained in:
parent
2cb0d11199
commit
771166968e
@ -727,7 +727,12 @@ fn init(app_handle: tauri::AppHandle) -> Result<()> {
|
||||
}
|
||||
}
|
||||
|
||||
tauri::async_runtime::spawn(pty::start_server(app_state.projects_storage.clone()));
|
||||
let project_storage = app_state.projects_storage.clone();
|
||||
tauri::async_runtime::spawn(async move {
|
||||
if let Err(e) = pty::start_server(project_storage).await {
|
||||
log::error!("failed to start pty server: {:#}", e);
|
||||
}
|
||||
});
|
||||
|
||||
watch_events(app_handle, rx);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user