From e107faf5cc2d4b149b34c3a204da0996484f1b5b Mon Sep 17 00:00:00 2001 From: Simon Marchetto Date: Tue, 9 Sep 2014 14:47:20 +0200 Subject: [PATCH] scilab: remove error messages in example contract --- Examples/scilab/contract/runme.sci | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Examples/scilab/contract/runme.sci b/Examples/scilab/contract/runme.sci index 1ae8504c4..2cad2b9ba 100644 --- a/Examples/scilab/contract/runme.sci +++ b/Examples/scilab/contract/runme.sci @@ -27,14 +27,15 @@ printf("Foo = %f\n", Foo_get()); // Check error message if violate contract try g = gcd(-42, 105); + error("g = gcd(-42, 105) must provoke a RunTimeError"); catch - printf("%s\n", lasterror()); + end try fact(-4); + error("fact(-4) must provoke a RunTimeError"); catch - printf("%s\n", lasterror()); end exit