function drush_get_error

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

Return the current error handling status

Return value

The current aggregate error status

Related topics

12 calls to drush_get_error()
drush_backend_output in includes/
drush_bootstrap in includes/
Bootstrap Drush to the desired phase.
drush_command in includes/
Entry point for commands into the drush_invoke API
drush_core_cli in commands/core/
drush_core_help in commands/core/
Command callback for help command. This is the default command, when none other has been specified.

... See full list


includes/, line 2797
The drush API implementation and helpers.


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