1
0
Fork 0
mirror of synced 2024-07-06 07:00:56 +12:00

Add previous Error

This commit is contained in:
fogelito 2024-04-11 10:49:45 +03:00
parent 00ebf5c10f
commit bec10c0052

View file

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