From f8ec96375aa7ffba79dff913119ff8ab470edd0e Mon Sep 17 00:00:00 2001 From: Joe Robinson Date: Thu, 10 Dec 2015 17:58:02 +0000 Subject: Fix exception error --- src/main/java/uk/co/blatech/blaears/controllers/MsgRelayController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main') diff --git a/src/main/java/uk/co/blatech/blaears/controllers/MsgRelayController.java b/src/main/java/uk/co/blatech/blaears/controllers/MsgRelayController.java index 664030f..3514d4f 100644 --- a/src/main/java/uk/co/blatech/blaears/controllers/MsgRelayController.java +++ b/src/main/java/uk/co/blatech/blaears/controllers/MsgRelayController.java @@ -19,7 +19,7 @@ public class MsgRelayController { //DANGER //Runtime.getRuntime().exec(new String[]{"/bin/bash", "-c", "echo theblueroom " + text + " | bash /home/smsd/msgrelay.bash "}); model.addAttribute("result", "OK"); - } catch (IOException e) { + } catch (Exception e) { System.out.println("Failed to run command echo theblueroom test " + text + " | bash /home/smsd/msgrelay.bash "); e.printStackTrace(); model.addAttribute("result", "failed"); -- cgit v1.2.3