@@ -39,7 +39,7 @@ |
||
| 39 | 39 | /** |
| 40 | 40 | * Execute the controller. |
| 41 | 41 | * |
| 42 | - * @return boolean |
|
| 42 | + * @return boolean|null |
|
| 43 | 43 | * |
| 44 | 44 | * @since 1.0 |
| 45 | 45 | */ |
@@ -75,8 +75,7 @@ discard block |
||
| 75 | 75 | } |
| 76 | 76 | |
| 77 | 77 | $this->cleanDatabase($tables); |
| 78 | - } |
|
| 79 | - catch (\RuntimeException $e) |
|
| 78 | + } catch (\RuntimeException $e) |
|
| 80 | 79 | { |
| 81 | 80 | // Check if the message is "Could not connect to database." Odds are, this means the DB isn't there or the server is down. |
| 82 | 81 | if (strpos($e->getMessage(), 'Could not connect to database.') !== false) |
@@ -90,8 +89,7 @@ discard block |
||
| 90 | 89 | $this->db->select($this->getApplication()->get('database.name')); |
| 91 | 90 | |
| 92 | 91 | $this->out('<info>Database created.</info>'); |
| 93 | - } |
|
| 94 | - else |
|
| 92 | + } else |
|
| 95 | 93 | { |
| 96 | 94 | throw $e; |
| 97 | 95 | } |