summaryrefslogtreecommitdiff
path: root/Examples/scilab/std_list
diff options
context:
space:
mode:
authorSimon Marchetto <simon.marchetto@scilab-enterprises.com>2014-09-11 08:56:04 +0200
committerSimon Marchetto <simon.marchetto@scilab-enterprises.com>2014-09-11 08:56:04 +0200
commit2bcd768909400c4f1db72527b2759fa400f05f98 (patch)
tree13cdaec009cf988f956695b4ca92b752c00c7cb6 /Examples/scilab/std_list
parentaf822c640cc5d3bd48e2b7e65fbdb12ecd3fbaaa (diff)
downloadswig-2bcd768909400c4f1db72527b2759fa400f05f98.tar.gz
scilab: display loading errors in examples
Diffstat (limited to 'Examples/scilab/std_list')
-rw-r--r--Examples/scilab/std_list/runme.sci6
1 files changed, 5 insertions, 1 deletions
diff --git a/Examples/scilab/std_list/runme.sci b/Examples/scilab/std_list/runme.sci
index e434ebbc5..e4c04b029 100644
--- a/Examples/scilab/std_list/runme.sci
+++ b/Examples/scilab/std_list/runme.sci
@@ -1,6 +1,10 @@
lines(0);
ilib_verbose(0);
-exec loader.sce;
+ierr = exec('loader.sce', 'errcatch');
+if ierr <> 0 then
+ disp(lasterror());
+ exit(ierr);
+end
example_Init();
// This example shows how to use C++ fonctions with STL lists arguments