Skip to content

Commit

Permalink
easier tagging of errors
Browse files Browse the repository at this point in the history
  • Loading branch information
battis committed Jan 9, 2024
1 parent 65441cc commit 1d7901a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/server/Sync/Progress.php
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ public function exception(
array_merge(
$this->defaultContext,
[
'isError' => true,
'code' => $e->getCode(),
'file' => $e->getFile(),
'line' => $e->getLine(),
Expand Down
8 changes: 6 additions & 2 deletions src/server/Workflows/sync.php
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,10 @@
$listProgress->log(
Level::Warning,
$error['message'],
array_merge(['email' => $bbMember->getEmail()], $error)
array_merge(
['email' => $bbMember->getEmail(), 'isError' => true],
$error
)
);
$errors++;
}
Expand All @@ -221,7 +224,8 @@
($errors === 1 ? '' : 's') .
" adding and removing members of '" .
$bbGroup->getParamEmail() .
"'"
"'",
['isError' => $errors > 0]
);

if ($bbGroup->getParamUpdateName()) {
Expand Down

0 comments on commit 1d7901a

Please sign in to comment.