Skip to content

Commit

Permalink
Update NewCommand.php
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell authored Oct 17, 2019
1 parent 8a6e90e commit 2f2c5cc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/NewCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -152,10 +152,10 @@ protected function extract($zipFile, $directory)
{
$archive = new ZipArchive;

$res = $archive->open($zipFile, ZipArchive::CHECKCONS);
$response = $archive->open($zipFile, ZipArchive::CHECKCONS);

if ($res === ZipArchive::ER_NOZIP) {
throw new RuntimeException('The zip file could not download. Check that you are able to access http://cabinet.laravel.com/latest.zip');
if ($response === ZipArchive::ER_NOZIP) {
throw new RuntimeException('The zip file could not download. Verify that you are able to access: http://cabinet.laravel.com/latest.zip');
}

$archive->extractTo($directory);
Expand Down

0 comments on commit 2f2c5cc

Please sign in to comment.