We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2121759 commit 03a297fCopy full SHA for 03a297f
src/Illuminate/Filesystem/LockableFile.php
@@ -2,6 +2,7 @@
2
3
namespace Illuminate\Filesystem;
4
5
+use Exception;
6
use Illuminate\Contracts\Filesystem\LockTimeoutException;
7
8
class LockableFile
@@ -65,6 +66,10 @@ protected function ensureDirectoryExists($path)
65
66
protected function createResource($path, $mode)
67
{
68
$this->handle = @fopen($path, $mode);
69
+
70
+ if (! $this->handle) {
71
+ throw new Exception('Unable to create lockable file: '.$path.'. Please ensure you have permission to create files in this location.');
72
+ }
73
}
74
75
/**
0 commit comments