Skip to content

Commit b4a6390

Browse files
committed
Fixed issue #441 // Added more descriptive message in exception
1 parent 5d3acf6 commit b4a6390

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/phpFastCache/Core/Pool/IO/IOHelperTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ public function getPath($readonly = false)
119119
* one, we must throw an exception
120120
*/
121121
if (!@file_exists($full_path) || !@is_writable($full_path)) {
122-
throw new phpFastCacheIOException('PLEASE CREATE OR CHMOD ' . $full_path . ' - 0777 OR ANY WRITABLE PERMISSION!');
122+
throw new phpFastCacheIOException('Path "' . $full_path . '" is not writable, please set a chmod 0777 or any writable permission and make sure to make use of an absolute path !');
123123
}
124124

125125
$this->tmp[ $full_path_hash ] = $full_path;

0 commit comments

Comments
 (0)