Skip to content

Commit c424b3e

Browse files
committed
Merge branch 'develop' of github.com:halmai/CodeIgniter into db/init_exception
2 parents 7ec771b + ac0e0bf commit c424b3e

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

system/database/DB_driver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ public function initialize()
436436
$this->display_error('db_unable_to_connect');
437437
}
438438

439-
return FALSE;
439+
throw new RuntimeException('Database connection failure.');
440440
}
441441
}
442442

user_guide_src/source/changelog.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ Release Date: Not Released
1111

1212
- Added UNIX socket connection support to :doc:`Session Library <libraries/sessions>` 'redis' driver.
1313

14+
- Database
15+
16+
- CI_DB_driver::initialize() throws a "Database connection failure." RuntimeException if couldn't connect to the database.
17+
1418

1519
Version 3.0.4
1620
=============

0 commit comments

Comments
 (0)