Throw better Exceptions
This commit is contained in:
2
laravel/cache/manager.php
vendored
2
laravel/cache/manager.php
vendored
@@ -65,7 +65,7 @@ class Manager {
|
||||
return new Drivers\Redis(Redis::db());
|
||||
|
||||
default:
|
||||
throw new \Exception("Cache driver {$driver} is not supported.");
|
||||
throw new \DomainException("Cache driver {$driver} is not supported.");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user