function drush_queue_delete_validate

master queue.drush.inc drush_queue_delete_validate($queue_name)

Validation callback for drush queue-delete.

File

commands/core/queue.drush.inc, line 106

Code

function drush_queue_delete_validate($queue_name) {
  try {
    $queue = drush_queue_get_class();
    $queue->getInfo($queue_name);
  }
  catch (\Drush\Queue\QueueException $exception) {
    return drush_set_error('DRUSH_QUEUE_DELETE_VALIDATION_ERROR', $exception->getMessage());
  }
}