#include "qui/MussaWindow.hpp"
#include "alg/parse_options.hpp"
+#include "mussa_exceptions.hpp"
int main(int argc, char **argv)
{
return 1;
}
- if (opts.useGUI) {
- MussaWindow win(opts.analysis);
- win.show();
- app.exec();
+ try {
+ if (opts.useGUI) {
+ MussaWindow win(opts.analysis);
+ win.show();
+ app.exec();
+ }
+ return 0;
+ } catch (mussa_error e) {
+ qFatal(e.what());
+ } catch (boost::filesystem::filesystem_error e) {
+ qFatal(e.what());
+ } catch (std::runtime_error e) {
+ qFatal(e.what());
+ } catch (...) {
+ qFatal("unrecognized exception");
}
-
- return 0;
+ return 1;
}