mirror of
https://github.com/appwrite/appwrite
synced 2026-05-24 09:28:40 +00:00
Add previous Error
This commit is contained in:
parent
00ebf5c10f
commit
bec10c0052
1 changed files with 1 additions and 1 deletions
|
|
@ -841,7 +841,7 @@ App::error()
|
||||||
$error = new AppwriteException(AppwriteException::USER_UNAUTHORIZED);
|
$error = new AppwriteException(AppwriteException::USER_UNAUTHORIZED);
|
||||||
break;
|
break;
|
||||||
case 'Utopia\Database\Exception\InvalidRelationshipValue':
|
case 'Utopia\Database\Exception\InvalidRelationshipValue':
|
||||||
$error = new AppwriteException(AppwriteException::RELATIONSHIP_VALUE_INVALID);
|
$error = new AppwriteException(AppwriteException::RELATIONSHIP_VALUE_INVALID, $error->getMessage(), previous: $error);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue