function drush_get_error

8.0.x drush.inc drush_get_error()
6.x drush.inc drush_get_error()
7.x drush.inc drush_get_error()
3.x drush.inc drush_get_error()
4.x drush.inc drush_get_error()
5.x drush.inc drush_get_error()
master drush.inc drush_get_error()

Return the current error handling status

Return value

The current aggregate error status

Related topics

10 calls to drush_get_error()
drush_backend_output in includes/backend.inc
drush_bootstrap in includes/environment.inc
Bootstrap Drush to the desired phase.
drush_command in includes/command.inc
Entry point for commands into the drush_invoke API
drush_invoke in includes/command.inc
Invoke drush api calls.
drush_pm_update in commands/pm/pm.drush.inc
Command callback. Execute updatecode.

... See full list

File

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

Code

function drush_get_error() {
  return drush_get_context('DRUSH_ERROR_CODE', DRUSH_SUCCESS);
}