create-prisma-php-app 1.26.3 → 1.26.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bootstrap.php +5 -1
- package/package.json +1 -1
package/dist/bootstrap.php
CHANGED
|
@@ -565,7 +565,11 @@ function modifyOutputLayoutForError($contentToAdd)
|
|
|
565
565
|
|
|
566
566
|
if ($_ENV['SHOW_ERRORS'] === "false") {
|
|
567
567
|
if ($errorFileExists) {
|
|
568
|
-
|
|
568
|
+
if (isAjaxOrXFileRequestOrRouteFile()) {
|
|
569
|
+
$contentToAdd = "An error occurred";
|
|
570
|
+
} else {
|
|
571
|
+
$contentToAdd = "<div class='error'>An error occurred</div>";
|
|
572
|
+
}
|
|
569
573
|
} else {
|
|
570
574
|
exit; // Exit if SHOW_ERRORS is false and no error file exists
|
|
571
575
|
}
|