summaryrefslogtreecommitdiff
path: root/js/NonLinear/INTRPLBLK_f.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/NonLinear/INTRPLBLK_f.js')
-rw-r--r--js/NonLinear/INTRPLBLK_f.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/js/NonLinear/INTRPLBLK_f.js b/js/NonLinear/INTRPLBLK_f.js
index a1b9cb1d..287f2933 100644
--- a/js/NonLinear/INTRPLBLK_f.js
+++ b/js/NonLinear/INTRPLBLK_f.js
@@ -36,8 +36,10 @@ function INTRPLBLK_f() {
}
if (size(this.a,"*")!=size(this.b,"*")) {
message("X and Y must have the same size");
+ throw "user error";
} else if (min(this.a.slice(2-1,$)-this.a.slice(1-1,$-1))<=0) {
message("X must be strictly increasing");
+ throw "user error";
} else {
if (ok) {
this.graphics.exprs = new ScilabDouble([this.exprs]);