commit 04321b97cda1748a07807794a33d9e61fa3227c9
parent fd4619ee5e446cb5695b36745fff5f0478783aaf
Author: dankert <openrat@jandankert.de>
Date: Fri, 11 Mar 2022 12:13:10 +0100
Fix: Show notice on internal server error.
Diffstat:
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/modules/cms/output/APIOutput.class.php b/modules/cms/output/APIOutput.class.php
@@ -105,7 +105,14 @@ abstract class APIOutput extends BaseOutput
protected function setError($text, $cause)
{
$data = [
- 'message' => $text
+ 'message' => $text,
+ 'notices' => [
+ [
+ 'status'=>'error',
+ 'text' =>$text,
+ ]
+ ],
+ 'errors' => [],
];
// Traces only in DEVELOPMENT mode