Skip to content

Commit

Permalink
Explicit namespace root for \Exception
Browse files Browse the repository at this point in the history
Without the slash, running `php artisan laravel-log-keeper` with no configuration results in the following exception being raised:
[Symfony\Component\Debug\Exception\FatalErrorException]          
Class 'MathiasGrimm\LaravelLogKeeper\Repos\Exception' not found
  • Loading branch information
eblount committed Mar 15, 2016
1 parent e23c18d commit 9a62ab6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Repos/RemoteLogsRepo.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public function __construct(array $config)
$this->config = $config;

if ($this->config['enabled_remote'] && !$this->config['remote_disk']) {
throw new Exception("remote_disk not configured for Laravel Log Keeper");
throw new \Exception("remote_disk not configured for Laravel Log Keeper");
}

$this->localLogPath = storage_path('logs');
Expand Down Expand Up @@ -65,4 +65,4 @@ public function get($log)
{
return $this->disk->get("{$this->remotePath}/{$log}");
}
}
}

0 comments on commit 9a62ab6

Please sign in to comment.