From 4d1e8bb193a7315a8fcfe1e09c33befdee660b7d Mon Sep 17 00:00:00 2001 From: Sunil Shetye Date: Wed, 18 Jul 2018 15:33:44 +0530 Subject: add throw after message() --- js/Branching/SWITCH2_m.js | 1 + 1 file changed, 1 insertion(+) (limited to 'js/Branching/SWITCH2_m.js') diff --git a/js/Branching/SWITCH2_m.js b/js/Branching/SWITCH2_m.js index c1d83765..cade952d 100644 --- a/js/Branching/SWITCH2_m.js +++ b/js/Branching/SWITCH2_m.js @@ -65,6 +65,7 @@ function SWITCH2_m() { } if (((this.ot<1)||(this.ot>8))&&(this.ot!=-1)) { message("Datatype is not supported"); + throw "user error"; var ok = false; } if (ok) { -- cgit