From 93cf28ebfbda9e2d7fefb9e95f8043a7d5ea3936 Mon Sep 17 00:00:00 2001 From: Dominique Fournier Date: Thu, 13 Aug 2015 09:50:04 +0000 Subject: [PATCH] lockfile : better error message to found the class which generate the error git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2230 bf3deb0d-5f1a-0410-827f-c0cc1f45334c --- lockfile.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lockfile.php b/lockfile.php index 91d1154..f58e83d 100644 --- a/lockfile.php +++ b/lockfile.php @@ -18,7 +18,8 @@ class lockfile if (!is_dir (dirname ($this->storagelock))) @mkdir (dirname ($this->storagelock)); if (!is_dir (dirname ($this->storagelock))) - throw new Exception ("Can't create '".dirname ($this->storagelock)."'", + throw new Exception ("Can't create '".dirname ($this->storagelock). + "' directory for lockfile", 500); $lockid = uniqid() . '_' . md5 (mt_rand()); $startTime = microtime (TRUE);