Changeset:
ec8e273d2560
https://sourceforge.net/p/mrbs/hg-code/ci/ec8e273d256088c0211a839eae7710bdc94c9333
Author:
Campbell Morrison <[email protected]>
Date:
Thu Sep 29 14:23:51 2016 +0100
Log message:
More conversion to exceptions
diffstat:
web/lib/MRBS/DB.php | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diffs (13 lines):
diff -r c1da0208e846 -r ec8e273d2560 web/lib/MRBS/DB.php
--- a/web/lib/MRBS/DB.php Thu Sep 29 14:20:44 2016 +0100
+++ b/web/lib/MRBS/DB.php Thu Sep 29 14:23:51 2016 +0100
@@ -25,8 +25,7 @@
if (is_null(static::DB_DBO_DRIVER) ||
is_null(static::DB_DEFAULT_PORT))
{
- print "Encountered a fatal bug in DB abstraction code!\n";
- return null;
+ throw new Exception("Encountered a fatal bug in DB abstraction code!");
}
// If no port has been provided, set a SQL variant dependent default
------------------------------------------------------------------------------
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits