Commit da465173 authored by Langella Olivier's avatar Langella Olivier
Browse files

catch ods exception in main

parent 8390b3e9
......@@ -21,6 +21,7 @@
#include <QCommandLineParser>
#include <QDebug>
#include <odsstream/odsexception.h>
masschroqCli::masschroqCli(QObject *parent) : QObject(parent)
{
......@@ -252,7 +253,16 @@ masschroqCli::run()
quit();
// delete logger;
}
catch(mcqError &error)
catch(OdsException &error)
{
mcqerr() << "Oops! an error occurred in MassChroQ. Dont Panic :" << endl;
mcqerr() << error.qwhat() << endl;
windaube_exit();
exit(1);
app->exit(1);
}
catch(pappso::PappsoException &error)
{
mcqerr() << "Oops! an error occurred in MassChroQ. Dont Panic :" << endl;
mcqerr() << error.qwhat() << endl;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment