diff options
author | Sunil Shetye | 2018-07-18 15:33:44 +0530 |
---|---|---|
committer | Sunil Shetye | 2018-07-18 17:07:40 +0530 |
commit | 4d1e8bb193a7315a8fcfe1e09c33befdee660b7d (patch) | |
tree | 360c93b86402e468a69d22fe3187d0809b095587 /js/Sources/CURV_f.js | |
parent | bfa780421678e897b17680f3e7c5db72d8ea8375 (diff) | |
download | sci2js-4d1e8bb193a7315a8fcfe1e09c33befdee660b7d.tar.gz sci2js-4d1e8bb193a7315a8fcfe1e09c33befdee660b7d.tar.bz2 sci2js-4d1e8bb193a7315a8fcfe1e09c33befdee660b7d.zip |
add throw after message()
Diffstat (limited to 'js/Sources/CURV_f.js')
-rw-r--r-- | js/Sources/CURV_f.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/js/Sources/CURV_f.js b/js/Sources/CURV_f.js index d8eb53ba..8939719f 100644 --- a/js/Sources/CURV_f.js +++ b/js/Sources/CURV_f.js @@ -49,6 +49,7 @@ function CURV_f() { var n = size(xx,"*"); if (or(xx.slice(2-1,n)-xx.slice(1-1,n-1)<0)) { message("You have not defined a function"); + throw "user error"; var ok = false; } if (ok) { |