diff updateDeDupe.cpp @ 9:b5943e4bf676

Fix up header includes. Introduce outer catch. Fix coding style. Remove spurious debug output.
author Tom Fredrik Blenning Klaussen <bfg@blenning.no>
date Wed, 22 Aug 2012 18:48:07 +0200
parents 5e4985407feb
children f59ee8d3f8ea
line wrap: on
line diff
--- a/updateDeDupe.cpp	Wed Aug 22 18:18:20 2012 +0200
+++ b/updateDeDupe.cpp	Wed Aug 22 18:48:07 2012 +0200
@@ -1,10 +1,20 @@
 #include "DataController.hpp"
+#include "Exception.hpp"
 
 #include <QtGui/QApplication>
 
+#include <iostream>
+
 int main(int argc, char *argv[]) {
 
-  DataController dc(false);
+  try {
+    DataController dc(false);
+  }
+  catch (Exception& e) {
+    std::cerr << "Unrecoverable error" << e.toString().toStdString();
+    exit(1);
+  }
+
 }