implement error msg
This commit is contained in:
parent
17251b1973
commit
de7fee6790
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue