Skip to content

Commit 86259c5

Browse files
Call drush_set_error so that an error status result code will be set when attempting to download a project that does not exist.
1 parent 1d0107a commit 86259c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

commands/pm/download.pm.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ function drush_pm_download() {
9292
$release = release_info_fetch($request, $restrict_to, $select, $all);
9393
if ($release == FALSE) {
9494
// Stop working on the first failure
95-
return FALSE;
95+
return drush_set_error('DRUSH_DOWNLOAD_FAILED', dt("Could not download requested project(s)."));
9696
}
9797

9898
// Determine the name of the directory that will contain the project.

0 commit comments

Comments
 (0)