Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions src/lib/Combiner.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,7 @@ private function submitBatch() {
call_user_func($this->checkpointer,$result);
}
if(!$result['success']) {
/**
* @todo we need to kill this process osmehow
*/
exit();
throw new \Exception("Could not put message on bus - result is: " . $result);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

$result is an array, an the way this is written, it would throw an Array to string conversion error. So either $result would have to be flattened, or use the element of result that you want to see in Exception.

}
}
}
Expand Down Expand Up @@ -170,4 +167,4 @@ public function end() {
$this->reset();
$this->uploader->end();
}
}
}