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);
|
||||
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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue