Updated error logging to use drush_set_error.