From bec10c005233822cf8f83e1c00a57feb77a5d01a Mon Sep 17 00:00:00 2001 From: fogelito Date: Thu, 11 Apr 2024 10:49:45 +0300 Subject: [PATCH] Add previous Error --- app/controllers/general.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/general.php b/app/controllers/general.php index 9bb1a587ac..61217a248e 100644 --- a/app/controllers/general.php +++ b/app/controllers/general.php @@ -841,7 +841,7 @@ App::error() $error = new AppwriteException(AppwriteException::USER_UNAUTHORIZED); break; case 'Utopia\Database\Exception\InvalidRelationshipValue': - $error = new AppwriteException(AppwriteException::RELATIONSHIP_VALUE_INVALID); + $error = new AppwriteException(AppwriteException::RELATIONSHIP_VALUE_INVALID, $error->getMessage(), previous: $error); break; }