Skip to content

Commit

Permalink
Provide more infomation for debug.
Browse files Browse the repository at this point in the history
  • Loading branch information
terrylinooo committed Nov 11, 2020
1 parent 763bd20 commit 90a3657
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/SimpleCache/AssertTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,15 +108,15 @@ protected function assertDirectoryWritable(string $directory): void
{
if (!is_dir($directory)) {
throw new CacheException(
'The directory of the storage does not exist.'
'The directory of the storage does not exist. (' . $directory . ')'
);
}

// @codeCoverageIgnoreStart

if (!is_writable($directory)) {
throw new CacheException(
'The directory of the storage must be wriable'
'The directory of the storage must be wriable. (' . $directory . ')'
);
}

Expand Down

0 comments on commit 90a3657

Please sign in to comment.