[examples] add return 1 if an exception is caught
@@ -317,10 +317,12 @@ int main(int argc, char* argv[])
catch (SiconosException e)
{
cout << e.report() << endl;
+ return 1;
}
catch (...)
{
cout << "Exception caught." << endl;
+ return 1;
}
cout << "Computation Time: " << time.elapsed() << endl;
}
