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.
@@ -565,7 +565,11 @@ function modifyOutputLayoutForError($contentToAdd)
565
565
 
566
566
  if ($_ENV['SHOW_ERRORS'] === "false") {
567
567
  if ($errorFileExists) {
568
- $contentToAdd = "<div class='error'>An error occurred</div>";
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-prisma-php-app",
3
- "version": "1.26.3",
3
+ "version": "1.26.4",
4
4
  "description": "Prisma-PHP: A Revolutionary Library Bridging PHP with Prisma ORM",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",