Skip to content

Commit ae71c61

Browse files
committed
That error page doesn't exist anymore
1 parent 04aa95a commit ae71c61

3 files changed

Lines changed: 8 additions & 4 deletions

File tree

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# Change Log
22

3-
## v4.1.0
3+
## v4.1.1-Alpha
4+
- Fixed missing template in ExceptionHandler and `notFoundHandler`
5+
- Migration rollback will throw a warning if a class is not found instead of aborting
6+
7+
## v4.1.0-Alpha
48
- Switch from pagination "plugin" to "widget" for Tablesorter. Allows us to update to the latest version of TS (fix #688, #715)
59
- Implement `WhoopsRenderer` for pretty debug pages. See (#674)
610
- Refactor error handling. Move responsibility for displayErrorDetails to handlers, and factor our ErrorRenderers. Addresses (#702)

app/sprinkles/core/src/Error/Handler/ExceptionHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ public function renderGenericResponse()
162162
try {
163163
$template = $this->ci->view->getEnvironment()->loadTemplate("pages/error/$httpCode.html.twig");
164164
} catch (\Twig_Error_Loader $e) {
165-
$template = $this->ci->view->getEnvironment()->loadTemplate("pages/error/default.html.twig");
165+
$template = $this->ci->view->getEnvironment()->loadTemplate("pages/abstract/error.html.twig");
166166
}
167167

168168
return $this->response

app/sprinkles/core/src/ServicesProvider/ServicesProvider.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,7 @@ public function register(ContainerInterface $container)
483483
try {
484484
$template = $c->view->getEnvironment()->loadTemplate("pages/error/404.html.twig");
485485
} catch (\Twig_Error_Loader $e) {
486-
$template = $c->view->getEnvironment()->loadTemplate("pages/error/default.html.twig");
486+
$template = $c->view->getEnvironment()->loadTemplate("pages/abstract/error.html.twig");
487487
}
488488

489489
return $response->withStatus(404)
@@ -589,7 +589,7 @@ public function register(ContainerInterface $container)
589589
// Load the translations
590590
$paths = $c->localePathBuilder->buildPaths();
591591
$loader = new ArrayFileLoader($paths);
592-
592+
593593
// Create the $translator object
594594
$translator = new MessageTranslator($loader->load());
595595

0 commit comments

Comments
 (0)