diff options
author | Joe Robinson <joe@lc8n.com> | 2015-12-10 17:58:02 +0000 |
---|---|---|
committer | Joe Robinson <joe@lc8n.com> | 2015-12-10 17:58:02 +0000 |
commit | f8ec96375aa7ffba79dff913119ff8ab470edd0e (patch) | |
tree | b40b89614106dd68f06ffea964f64b2073c4b36a | |
parent | 7e874d7867e295a8bc0d928729df0dbbd2bb605e (diff) |
Fix exception error
-rw-r--r-- | src/main/java/uk/co/blatech/blaears/controllers/MsgRelayController.java | 2 |
1 files changed, 1 insertions, 1 deletions
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"); |