Skip to content

Commit aa2a345

Browse files
committed
Add additional reporting just in case
1 parent 2857ba1 commit aa2a345

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/TaskHandler.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ private function captureTask($task): array
8686
try {
8787
$validator->validate();
8888
} catch (ValidationException $e) {
89+
report($e);
8990
if (config('app.debug')) {
9091
throw $e;
9192
} else {
@@ -135,6 +136,7 @@ private function handleTask(array $task): void
135136
$apiTask = CloudTasksApi::getTask($fullTaskName);
136137
} catch (ApiException $e) {
137138
if (in_array($e->getStatus(), ['NOT_FOUND', 'PRECONDITION_FAILED'])) {
139+
report($e);
138140
abort(404);
139141
}
140142

0 commit comments

Comments
 (0)