Skip to content

Commit

Permalink
refactor: improve error message
Browse files Browse the repository at this point in the history
  • Loading branch information
kenjis committed Feb 12, 2022
1 parent c6ee79f commit a10bde7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion system/CodeIgniter.php
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,10 @@ protected function initializeKint()
*/
public function run(?RouteCollectionInterface $routes = null, bool $returnResponse = false)
{
assert($this->context !== null, 'Context must be set before run() is called');
assert(
$this->context !== null,
'Context must be set before run() is called. If you are upgrading from 4.1.x, you need to merge `public/index.php` and `spark` file from `vendor/codeigniter4/framework`.'
);

$this->startBenchmark();

Expand Down

0 comments on commit a10bde7

Please sign in to comment.