Refine drush error checking