From de7fee6790dc0a52945bb27f85268a7905d46284 Mon Sep 17 00:00:00 2001 From: Everly Precia Suresh Date: Tue, 25 Oct 2022 17:46:28 +0000 Subject: [PATCH] implement error msg --- app/workers/databases.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/workers/databases.php b/app/workers/databases.php index 79c79a69c..d3a8e17b1 100644 --- a/app/workers/databases.php +++ b/app/workers/databases.php @@ -96,10 +96,10 @@ class DatabaseV1 extends Worker throw new Exception('Failed to create Attribute'); } $dbForProject->updateDocument('attributes', $attribute->getId(), $attribute->setAttribute('status', 'available')); - // $dbForProject->updateDocument('attributes', $attribute->getId(), $attribute->setAttribute('error', 'available')); } catch (\Throwable $th) { Console::error($th->getMessage()); $dbForProject->updateDocument('attributes', $attribute->getId(), $attribute->setAttribute('status', 'failed')); + $dbForProject->updateDocument('attributes', $attribute->getId(), $attribute->setAttribute('error', $th->getMessage())); } finally { $target = Realtime::fromPayload( // Pass first, most verbose event pattern