Index: /trunk/FACT++/src/Configuration.cc
===================================================================
--- /trunk/FACT++/src/Configuration.cc	(revision 11768)
+++ /trunk/FACT++/src/Configuration.cc	(revision 11769)
@@ -403,14 +403,8 @@
     boost::smatch what;
     if (!boost::regex_match(database, what, expr, boost::match_extra))
-    {
-        cout << "Couldn't parse '" << database << "'." << endl;
-        throw;
-    }
+        throw runtime_error("Couldn't parse '"+database+"'.");
 
     if (what.size()!=10)
-    {
-        cout << "Error parsing '" << database << "'." << endl;
-        throw;
-    }
+        throw runtime_error("Error parsing '"+database+"'.");
 
     const string user   = what[2];
@@ -418,5 +412,5 @@
     const string server = what[5];
     const string db     = what[9];
-    const int port      = stoi(string(what[7]));
+    const int port      = atoi(string(what[7]).c_str());
 
     cout << "Connecting to '";
