function make_error

8.0.x make.utilities.inc make_error($error_code, $message)
6.x make.utilities.inc make_error($error_code, $message)
7.x make.utilities.inc make_error($error_code, $message)
5.x make.utilities.inc make_error($error_code, $message)
master make.utilities.inc make_error($error_code, $message)

Logs an error unless the --force-complete command line option is specified.

15 calls to make_error()
DrushMakeProject::applyPatches in commands/make/make.project.inc
Retrieve and apply any patches specified by the makefile to this project.
DrushMakeProject::getTranslations in commands/make/make.project.inc
Retrieve translations for this project.
drush_make in commands/make/make.drush.inc
Drush callback; make based on the makefile.
drush_make_convert in commands/make/make.drush.inc
Command callback; convert ini makefile to YAML.
drush_make_process in commands/make/make.drush.inc
Drush callback: hidden file to process an individual project.

... See full list

File

commands/make/make.utilities.inc, line 479
General utility functions for Drush Make.

Code

function make_error($error_code, $message) {
  if (drush_get_option('force-complete')) {
    drush_log("$error_code: $message -- build forced", LogLevel::WARNING);
  }
  else {
    return drush_set_error($error_code, $message);
  }
}