error checking in drush.js