summaryrefslogtreecommitdiff
path: root/js/Branching/RELAY_f.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/Branching/RELAY_f.js')
-rw-r--r--js/Branching/RELAY_f.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/js/Branching/RELAY_f.js b/js/Branching/RELAY_f.js
index 68a53a52..801316cf 100644
--- a/js/Branching/RELAY_f.js
+++ b/js/Branching/RELAY_f.js
@@ -40,6 +40,7 @@ function RELAY_f() {
}
if (this.z0>this.nin||this.z0<=0) {
message("initial connected input is not a valid input port number");
+ throw "user error";
} else {
var tmpvar0 = check_io(this.model,this.graphics,-ones(this.nin,1),-1,ones(this.nin,1),[]);
this.model = tmpvar0[0];