Commit e1da3d9a authored by jribeiro's avatar jribeiro Committed by pifagor

Issue #2675490 by jribeiro, Chris2, pifagor: [drush] xmlsitemap-rebuild should...

Issue #2675490 by jribeiro, Chris2, pifagor: [drush] xmlsitemap-rebuild should output WARNING instead of ERROR when there are no links rebuildable
parent 978d3045
......@@ -81,7 +81,7 @@ function drush_xmlsitemap_rebuild() {
$types = array_intersect($types, $option_types);
}
if (empty($types)) {
return drush_set_error(dt('No link types are rebuildable.'));
return drush_log(dt('No link types are rebuildable.'), 'warning');
}
// Run the batch process.
......@@ -128,7 +128,7 @@ function drush_xmlsitemap_queue_rebuild() {
$types = array_intersect($types, $option_types);
}
if (empty($types)) {
return drush_set_error(dt('No link types are rebuildable.'));
return drush_log(dt('No link types are rebuildable.'), 'warning');
}
xmlsitemap_rebuild_clear($types, TRUE);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment