Skip to content

Commit

Permalink
Test where you sucked at it
Browse files Browse the repository at this point in the history
  • Loading branch information
ekinhbayar committed Dec 7, 2016
1 parent d0ab8e0 commit e710ad9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Plugins/Changelog.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,14 @@ protected function getCommitReference(Command $command, string $path)

list($errors, $responses) = yield $allRequests;

var_dump($responses);

if($responses['heads']->getStatus() !== 200){
throw new ReferenceNotFoundException("Failed to fetch repository for $path. Typo?");
}

if($responses['branch']->getStatus() !== 200){
throw new ReferenceNotFoundException("Failed to fetch branch $branch for $path. Typo?");
throw new ReferenceNotFoundException("Failed to fetch branch $branch for $path");
}

$commit = json_decode($responses['branch']->getBody(), true);
Expand Down

0 comments on commit e710ad9

Please sign in to comment.