Changeset:
        871ef6c75fd0
        
https://sourceforge.net/p/mrbs/hg-code/ci/871ef6c75fd0cf485ee03330838157bbbefdd717
Author:
        Campbell Morrison <[email protected]>
Date:
        Mon Sep 26 13:05:13 2016 +0100
Log message:

Threw an exception for an unsupported db driver

diffstat:

 web/lib/MRBS/DBFactory.php |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (13 lines):

diff -r 434775b177dc -r 871ef6c75fd0 web/lib/MRBS/DBFactory.php
--- a/web/lib/MRBS/DBFactory.php        Sun Sep 25 08:37:54 2016 +0100
+++ b/web/lib/MRBS/DBFactory.php        Mon Sep 26 13:05:13 2016 +0100
@@ -18,7 +18,8 @@
       case 'pgsql':
         break;
       default:
-        // throw exception
+        throw new Exception("Unsupported database driver '$db_system'");
+        break;
     }
     $class = "MRBS\DB_${db_system}";
     return new $class($db_host, $db_username, $db_password, $db_name, 
$persist, $db_port);

------------------------------------------------------------------------------
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits

Reply via email to