The task is not valid

This message tells us nothing about what is going on. I am encountering it while using drush hostmaster-migrate command. It is blocking upgrading, but I figured I might as well patch this message to give more details.

Comments

Jon Pugh created an issue. See original summary.

  • Jon Pugh committed 57f553d on 7.x-3.x
    Issue #2826091: Improve error message for "hosting-task" command
    
Jon Pugh’s picture

- drush_set_error('HOSTING_INVALID_TASK', t("This task is not valid"));
+ drush_set_error('HOSTING_INVALID_TASK', t("Could not find or create a '!type' task for hosting context '!context'.", array(
+ '!type' => $type,
+ '!context' => $id,
+ )));

This now tells us the type of task that is being attempted and the context name.

colan’s picture

Status: Needs review » Reviewed & tested by the community

Yay!

colan’s picture

Status: Reviewed & tested by the community » Fixed

Actually, this is already committed.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.