Skip to content

Commit

Permalink
Halt if the submission was not successful
Browse files Browse the repository at this point in the history
  • Loading branch information
joe-pritchard committed May 15, 2018
1 parent 35eb44c commit 25a019a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -186,10 +186,13 @@ private function submitQueueEntry(string $file_url, Collection $workflow): void
$response = $jmf->setDevice($workflow->get('name'))->submitMessage();
} catch (JMFReturnCodeException $exception) {
Event::fire(new JMFEntryFailed($message, $exception->getMessage()));
return;
} catch (JMFSubmissionException $exception) {
Event::fire(new JMFEntryFailed($message, $exception->getMessage()));
return;
} catch (JMFResponseException $exception) {
Event::fire(new JMFEntryFailed($message, $exception->getMessage()));
return;
}

// fire an event so the application can pick up on this response
Expand Down

0 comments on commit 25a019a

Please sign in to comment.