summaryrefslogtreecommitdiff
path: root/js/Linear/DELAYV_f.js
diff options
context:
space:
mode:
authorSunil Shetye2018-07-18 15:33:44 +0530
committerSunil Shetye2018-07-18 17:07:40 +0530
commit4d1e8bb193a7315a8fcfe1e09c33befdee660b7d (patch)
tree360c93b86402e468a69d22fe3187d0809b095587 /js/Linear/DELAYV_f.js
parentbfa780421678e897b17680f3e7c5db72d8ea8375 (diff)
downloadsci2js-4d1e8bb193a7315a8fcfe1e09c33befdee660b7d.tar.gz
sci2js-4d1e8bb193a7315a8fcfe1e09c33befdee660b7d.tar.bz2
sci2js-4d1e8bb193a7315a8fcfe1e09c33befdee660b7d.zip
add throw after message()
Diffstat (limited to 'js/Linear/DELAYV_f.js')
-rw-r--r--js/Linear/DELAYV_f.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/js/Linear/DELAYV_f.js b/js/Linear/DELAYV_f.js
index aad2037a..7ecd61f0 100644
--- a/js/Linear/DELAYV_f.js
+++ b/js/Linear/DELAYV_f.js
@@ -48,10 +48,12 @@ function DELAYV_f() {
}
if (size(this.zz0,"*")<2) {
message("Register length must be at least 2");
+ throw "user error";
var ok = false;
}
if (this.T<=0) {
message("Delay must be positive");
+ throw "user error";
var ok = false;
}
if (ok) {