diff options
| author | 2013-11-09 21:33:43 +0100 | |
|---|---|---|
| committer | 2013-11-09 21:33:43 +0100 | |
| commit | a1fa4a445ad6a8b12fe606764588b619edab8d8f (patch) | |
| tree | 27a24450906d0853ad28527e69f3d4a04ec0f666 /lib/minz/Minz_Log.php | |
| parent | 33b68a801734999504d3dfe811bb71582f7b9b0d (diff) | |
Ajout de messages en cas de mauvaise configuration
Si fichier de conf inaccessible / mal configuré ou fichier de log
inaccessible, on affiche des messages plus explicites qu'une page
blanche
Diffstat (limited to 'lib/minz/Minz_Log.php')
| -rw-r--r-- | lib/minz/Minz_Log.php | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/lib/minz/Minz_Log.php b/lib/minz/Minz_Log.php index c6f23d900..153870435 100644 --- a/lib/minz/Minz_Log.php +++ b/lib/minz/Minz_Log.php @@ -65,12 +65,9 @@ class Minz_Log { fwrite ($file, $log); fclose ($file); } else { - Error::error ( - 500, - array ('error' => array ( - 'Permission is denied for `' - . $file_name . '`') - ) + throw new PermissionDeniedException ( + $file_name, + MinzException::ERROR ); } } |
