diff options
| author | Asko Nõmm <asko@nth.ee> | 2024-11-10 23:05:12 +0200 |
|---|---|---|
| committer | Asko Nõmm <asko@nth.ee> | 2024-11-10 23:05:12 +0200 |
| commit | 2a1a472dd6f025b10c50a0891eb6f27f19bc248b (patch) | |
| tree | 8f874ab0dad71c75bb8e2867616c83d6955ba917 /src/Drivers/FileSystemDriver.php | |
| parent | f82340f781a1ef8c48e8696aee0e345b5731436b (diff) | |
Add phpunit.xml
Diffstat (limited to 'src/Drivers/FileSystemDriver.php')
| -rw-r--r-- | src/Drivers/FileSystemDriver.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Drivers/FileSystemDriver.php b/src/Drivers/FileSystemDriver.php index 16c1461..a721b70 100644 --- a/src/Drivers/FileSystemDriver.php +++ b/src/Drivers/FileSystemDriver.php @@ -36,12 +36,12 @@ readonly class FileSystemDriver implements Driver // If the log file does not exist, try creating one if (!file_exists($path) && !touch($path)) { - throw new \RuntimeException('Log file could not be created'); + throw new \RuntimeException('Log file could not be created at path: ' . $path); } // We managed to get this far, but still can't write to the log file if (!is_writeable($path)) { - throw new \RuntimeException('Log file is not writeable'); + throw new \RuntimeException('Log file is not writeable at path: ' . $path); } file_put_contents( |
