diff options
Diffstat (limited to 'js/Threshold/ZCROSS_f.js')
-rw-r--r-- | js/Threshold/ZCROSS_f.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/js/Threshold/ZCROSS_f.js b/js/Threshold/ZCROSS_f.js index 88668446..f822d0c1 100644 --- a/js/Threshold/ZCROSS_f.js +++ b/js/Threshold/ZCROSS_f.js @@ -34,6 +34,7 @@ function ZCROSS_f() { this.in1 = int(this.in1); if (this.in1<=0) { message("Block must have at least one input"); + throw "user error"; } else { var kk = 0; for (jj=1;jj<=this.in1;jj+=1) { |