From 2a1a472dd6f025b10c50a0891eb6f27f19bc248b Mon Sep 17 00:00:00 2001 From: Asko Nõmm Date: Sun, 10 Nov 2024 23:05:12 +0200 Subject: Add phpunit.xml --- src/Drivers/FileSystemDriver.php | 4 ++-- 1 file 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( -- cgit v1.2.3