Skip to content

Commit

Permalink
exception cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Joseph Beeson committed Jan 31, 2025
1 parent 70d884b commit 66c096f
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions plugins/Monolog/config/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -241,12 +241,10 @@
$path = $c->get('ini.log.custom_function_file');
if (!file_exists($path)) {
return null;
throw new \Exception('Specified path to custom_function_file does not exist: ' . $path);
}

if (!is_readable($path)) {
return null;
throw new \Exception('Specified path to custom_function_file file is not readable: ' . $path);
}

return $path;
Expand Down

0 comments on commit 66c096f

Please sign in to comment.