Skip to content

Commit

Permalink
Merge pull request #555 from Geolim4/final
Browse files Browse the repository at this point in the history
Fixed #554
  • Loading branch information
Geolim4 committed Dec 13, 2017
2 parents 9f2a95c + e3a69dd commit bcfb69a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/phpFastCache/Core/Pool/IO/IOHelperTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ public function getPath($readonly = false)

/**
* In case there is no directory
* writable including tye temporary
* writable including the temporary
* one, we must throw an exception
*/
if (!@file_exists($full_path) || !@is_writable($full_path)) {
Expand Down
15 changes: 14 additions & 1 deletion src/phpFastCache/Exceptions/phpFastCacheIOException.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,21 @@
/**
* Class phpFastCacheIOException
* @package phpFastCache\Exceptions
* @since v6
*/
class phpFastCacheIOException extends phpFastCacheCoreException
{

/**
* @inheritdoc
*/
public function __construct($message = "", $code = 0, $previous = null)
{
$lastError = error_get_last();
if($lastError){
$message .= "\n";
$message .= "Additional information provided by error_get_last():\n";
$message .= "{$lastError['message']} in {$lastError['file']} line {$lastError['line']}";
}
parent::__construct($message, $code, $previous);
}
}

0 comments on commit bcfb69a

Please sign in to comment.