function drush_errors_on

8.0.x drush.inc drush_errors_on($errors = null)
6.x drush.inc drush_errors_on($errors = null)
7.x drush.inc drush_errors_on($errors = null)
3.x drush.inc drush_errors_on()
4.x drush.inc drush_errors_on($errors = null)
5.x drush.inc drush_errors_on($errors = null)
master drush.inc drush_errors_on($errors = null)

Turn PHP error handling on.

Related topics

2 calls to drush_errors_on()
update_main_prepare in commands/core/drupal/update_6.inc
update_main_prepare in commands/core/drupal/update_7.inc

File

includes/drush.inc, line 1768
The drush API implementation and helpers.

Code

function drush_errors_on() {
  $errors = &drush_get_context('DRUSH_ERROR_REPORTING', E_ALL ^ E_NOTICE);
  $errors = error_reporting($errors);
  ini_set('display_errors', TRUE);
}