Skip to content

Commit 36ffc64

Browse files
committed
Cleaner exits for early messages.
1 parent 18a7ae9 commit 36ffc64

2 files changed

Lines changed: 2 additions & 7 deletions

File tree

system/Exceptions/FrameworkException.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,6 @@
1111
class FrameworkException extends \RuntimeException implements ExceptionInterface
1212
{
1313

14-
public static function forEmptyBaseURL(): self
15-
{
16-
return new static('You have an empty or invalid base URL. The baseURL value must be set in Config\App.php, or through the .env file.');
17-
}
18-
1914
public static function forInvalidFile(string $path)
2015
{
2116
return new static(lang('Core.invalidFile', [$path]));

system/HTTP/IncomingRequest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ public function setLocale(string $locale)
254254
}
255255
} catch (\Exception $e)
256256
{
257-
257+
258258
}
259259
// @codeCoverageIgnoreEnd
260260

@@ -591,7 +591,7 @@ protected function detectURI($protocol, $baseURL)
591591
// @codeCoverageIgnoreStart
592592
if ( ! is_cli())
593593
{
594-
throw FrameworkException::forEmptyBaseURL();
594+
die('You have an empty or invalid base URL. The baseURL value must be set in Config\App.php, or through the .env file.');
595595
}
596596
// @codeCoverageIgnoreEnd
597597
}

0 commit comments

Comments
 (0)