diff --git a/src/scdaq.cc b/src/scdaq.cc
index 6bba17daf37a86ea5a7c782231c78e98164d6169..bf384b2d509294e18339d87803d61a0a6288dfaa 100644
--- a/src/scdaq.cc
+++ b/src/scdaq.cc
@@ -204,10 +204,10 @@ if(argc < 2){
 
     //    utility::report_elapsed_time((tbb::tick_count::now() - mainStartTime).seconds());
     return retval;
-  } catch (std::exception& e) {
+  } catch (std::invalid_argument& e) {
     LOG(FATAL) << "Configuration invalid! Error text is \"" << e.what() << "\" Bailing out.";
     return EX_CONFIG;
-  } catch(std::exception& e) {
+  } catch (std::exception& e) {
     LOG(ERROR) << "Error occurred. error text is: \"" << e.what() << "\"";
     return 1;
   }