Closed (fixed)
Project:
dog (Drupal on Git)
Component:
Code
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Anonymous (not verified)
Created:
26 Apr 2011 at 11:56 UTC
Updated:
5 May 2020 at 08:33 UTC
The drush_set_error() function in drush.inc expects string error codes, but dog passes numeric values.
* @param error
* A text string identifying the type of error.
Any numeric code gets replaced by 'DRUSH_FRAME_WORK_ERROR' :
if (is_numeric($error)) {
$error = 'DRUSH_FRAMEWORK_ERROR';
}
Comments
Comment #1
sdboyer commentedYeah, I'm discovering that. I talked with msonnabaum a fair bit about this recently; apparently drush shifted over to only allowing two exit statuses a while back. Can't exactly remember why. I'm going to see what I can do about reintroducing extension-controlled exit statuses, but will shift the errors over to strings until then.
Comment #2
sdboyer commentedFixed & pushed into master.