Skip to content

Commit

Permalink
feat. trad error message + clear persistent log
Browse files Browse the repository at this point in the history
  • Loading branch information
nivcoo authored Aug 28, 2021
1 parent f73cdae commit 36528ff
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions lib/Cake/Error/ErrorHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,13 @@ public static function handleException($exception)
$e->getTraceAsString()
);
static::$_bailExceptionRendering = true;
echo "<pre>$message</pre>";
die('Try to remove files on directory /app/tmp/cache/');
App::uses('Folder', 'Utility');
$folder = new Folder(ROOT . DS . 'app' . DS . 'tmp' . DS . 'cache' . DS . 'persistent');
if (!empty($folder->path)) {
$folder->delete();
}
echo "<b>Essayez d'actualiser et/ou de supprimer le dossier /app/tmp/cache/ - Try to refresh and/or remove files on directory /app/tmp/cache/</b>";
die("<pre>$message</pre>");
}
}

Expand Down

0 comments on commit 36528ff

Please sign in to comment.