From d3cf4b9ab4eaedec5f3d48af3fd270feb955b892 Mon Sep 17 00:00:00 2001 From: Bradley Schofield Date: Wed, 1 May 2024 20:43:58 +0900 Subject: [PATCH] Update Migrations.php --- src/Appwrite/Platform/Workers/Migrations.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Appwrite/Platform/Workers/Migrations.php b/src/Appwrite/Platform/Workers/Migrations.php index d7105ccecc..2801c7edbc 100644 --- a/src/Appwrite/Platform/Workers/Migrations.php +++ b/src/Appwrite/Platform/Workers/Migrations.php @@ -305,7 +305,8 @@ class Migrations extends Action } foreach ($destinationErrors as $error) { /** @var MigrationException $error */ - $errorMessages[] = "Error occurred while pushing '{$error->getResourceType()}:{$error->getResourceId()}' to destination with message: '{$error->getMessage()}'"; + $prettyMessages[] = "Error occurred while pushing '{$error->getResourceType()}:{$error->getResourceId()}' to destination with message: '{$error->getMessage()}'"; + $simpleMessages[] = "[Destination] ['{$error->getResourceType()}:{$error->getResourceId()}'] '{$error->getMessage()}'"; } $migrationDocument->setAttribute('errors', $prettyMessages);