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; }