From 7fe6532c7373e57f2e95a2525d49290856c80b17 Mon Sep 17 00:00:00 2001 From: Manos Pitsidianakis Date: Fri, 20 Sep 2019 09:23:48 +0300 Subject: [PATCH] ui: add log on child waiting error --- ui/src/state.rs | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/ui/src/state.rs b/ui/src/state.rs index f7782838..63a82285 100644 --- a/ui/src/state.rs +++ b/ui/src/state.rs @@ -607,7 +607,11 @@ impl State { match w { Ok(Some(_)) => true, Ok(None) => false, - Err(_) => { + Err(e) => { + log( + format!("Failed to wait on editor process: {}", e.to_string()), + ERROR, + ); return None; } } @@ -617,7 +621,11 @@ impl State { match w { Ok(Some(_)) => true, Ok(None) => false, - Err(_) => { + Err(e) => { + log( + format!("Failed to wait on child process: {}", e.to_string()), + ERROR, + ); return None; } }