Fixed bugs

This commit is contained in:
2026-06-19 16:40:37 +00:00
parent 0027766a77
commit 01fae418de
3 changed files with 9 additions and 9 deletions
+2 -2
View File
@@ -9,7 +9,7 @@ namespace CloudObjects\PhpMAE;
use Slim\Psr7\Response;
use Slim\ResponseEmitter;
use ML\JsonLD\Node;
use CloudObjects\SDK\ObjectRetriever;
use CloudObjects\SDK\ObjectRetriever, CloudObjects\SDK\Constants;
class ErrorHandler {
@@ -22,7 +22,7 @@ class ErrorHandler {
$message = substr($error['message'], 0, strpos($error['message'], ' in /'));
$response = (new Response(500))->withHeader('Content-Type', 'text/plain');
$response->getBody()->write("Error in implementation of <".$object->getId()."> at revision "
. $object->getProperty(ObjectRetriever::REVISION_PROPERTY)->getValue()
. $object->getProperty(Constants::PROPERTY_REVISION)->getValue()
. ":\n".$message);
return $response;
});