Skip to content

Commit

Permalink
change exception type
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Mar 7, 2017
1 parent 168b046 commit b4f0005
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Illuminate/Foundation/ProviderRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

namespace Illuminate\Foundation;

use Exception;
use Illuminate\Filesystem\Filesystem;
use Illuminate\Contracts\Filesystem\FileNotFoundException;
use Illuminate\Contracts\Foundation\Application as ApplicationContract;

class ProviderRepository
Expand Down Expand Up @@ -181,12 +181,12 @@ protected function freshManifest(array $providers)
*
* @param array $manifest
* @return array
* @throws FileNotFoundException
* @throws Exception
*/
public function writeManifest($manifest)
{
if (! is_writable(dirname($this->manifestPath))) {
throw new FileNotFoundException('The bootstrap/cache directory must be present and writable.');
throw new Exception('The bootstrap/cache directory must be present and writable.');
}

$this->files->put(
Expand Down

0 comments on commit b4f0005

Please sign in to comment.