From 3fec4edf90f877fef410c525b960013b2ea8776f Mon Sep 17 00:00:00 2001 From: Nirothipan Date: Wed, 21 Jun 2017 23:13:58 +0530 Subject: [PATCH] adding warn messages --- .../src/main/java/org.carbon.android.emulator/TryIt.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android.emulator/src/main/java/org.carbon.android.emulator/TryIt.java b/components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android.emulator/src/main/java/org.carbon.android.emulator/TryIt.java index 79edf52d9c..a45d56b1d5 100644 --- a/components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android.emulator/src/main/java/org.carbon.android.emulator/TryIt.java +++ b/components/mobile-plugins/android-plugin/org.wso2.carbon.device.mgt.mobile.android.emulator/src/main/java/org.carbon.android.emulator/TryIt.java @@ -105,8 +105,10 @@ public class TryIt { Process startShell = startShellProcessBuilder.start(); System.out.println("Connected to device shell"); startShell.waitFor(); - } catch (IOException | InterruptedException ignored) { - // script can continue without this process + } catch (IOException e) { + tryIt.handleException("Unable to start the shell", e); + } catch (InterruptedException ignored) { + // } System.out.println("\nGood Bye!"); }