mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Add previous Error
This commit is contained in:
1 parent
00ebf5c10f
commit
bec10c0052
1 file changed
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user