PHLAK / Stash

Simple PHP caching library
https://packagist.org/packages/phlak/stash
MIT License
7 stars 3 forks source link

Add a descriptive exception message when throwing an InvalidDriverException #2

Closed PHLAK closed 6 years ago

PHLAK commented 7 years ago

https://github.com/PHLAK/Stash/blob/75970c43d4ce5901999c608a4b4bb95d9bebe6a0/src/Cache.php#L35

Maybe something like:

throw new InvalidDriverException('Unable to initialize driver of type ' . $driver);
PHLAK commented 6 years ago

Resolved by #3